Skip to content

Commit 1571ad9

Browse files
author
Bart Veneman
committed
update readme for v2
1 parent 790c7dc commit 1571ad9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ npm install css-time-sort
1414
```js
1515
import { convert, compare } from "css-time-sort";
1616

17+
// Using `compare` will sort an array from short to long times:
1718
let result = ["3s", "2ms"].sort(compare); // ["2ms", "3s"]
1819

19-
// Converting time-like values
20+
// Converting time-like values converts the input to ms:
2021
convert("1s"); // 1000
2122
convert("1ms"); // 1
2223
convert("+2ms"); // 2

0 commit comments

Comments
 (0)