Skip to content

Commit 8d05af6

Browse files
authoredDec 1, 2020
Update README.md
1 parent 65d0edf commit 8d05af6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This module can be used to parse & compile nth-checks, as they are found in CSS
1111
### API
1212

1313
```js
14-
var nthCheck = require("nth-check");
14+
const nthCheck = require("nth-check");
1515
```
1616

1717
##### `nthCheck(formula)`
@@ -20,7 +20,7 @@ First parses, then compiles the formula.
2020

2121
##### `nthCheck.parse(formula)`
2222

23-
Parses the expression, throws a `SyntaxError` if it fails, otherwise returns an array containing two elements.
23+
Parses the expression, throws a `SyntaxError` if it fails. Otherwise, returns an array containing the integer step size and the integer offset of the nth rule.
2424

2525
__Example:__
2626

@@ -36,7 +36,7 @@ If the formula doesn't match any elements, it returns [`boolbase`](https://githu
3636

3737
__Example:__
3838
```js
39-
var check = nthCheck.compile([2, 3]);
39+
const check = nthCheck.compile([2, 3]);
4040

4141
check(0) //false
4242
check(1) //false

0 commit comments

Comments
 (0)
Please sign in to comment.