You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ import Time from 'time-chainer';
29
29
setTimeout(() => {
30
30
doSomething();
31
31
32
-
}, Time.seconds(5));
32
+
}, +Time.seconds(5));
33
33
34
34
// 3 Days and 12 hours later from now
35
35
newDate(
@@ -50,3 +50,19 @@ Time
50
50
.weeks(1)
51
51
; // 1,945,830,500
52
52
```
53
+
54
+
## `TimeChainer` extends `Number`
55
+
56
+
Time Chainer extends `Number` object. In cases where a primitive number is strictly required, you will need to explicitly convert it to a primitive `number` by appending a `+` operator like this:
0 commit comments