We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 790c7dc commit 1571ad9Copy full SHA for 1571ad9
readme.md
@@ -14,9 +14,10 @@ npm install css-time-sort
14
```js
15
import { convert, compare } from "css-time-sort";
16
17
+// Using `compare` will sort an array from short to long times:
18
let result = ["3s", "2ms"].sort(compare); // ["2ms", "3s"]
19
-// Converting time-like values
20
+// Converting time-like values converts the input to ms:
21
convert("1s"); // 1000
22
convert("1ms"); // 1
23
convert("+2ms"); // 2
0 commit comments