added Travis badge
Felix Böhm
10 years ago
0 | #nth-check | |
0 | #nth-check [![Build Status](https://travis-ci.org/fb55/nth-check.png)](https://travis-ci.org/fb55/nth-check) | |
1 | 1 | |
2 | 2 | A performant nth-check parser & compiler. |
3 | 3 | |
33 | 33 | |
34 | 34 | If the formula doesn't match any elements, it returns [`boolbase`](https://github.com/fb55/boolbase)'s `falseFunc`, otherwise, a function accepting an _index_ is returned, which returns whether or not a passed _index_ matches the formula. (Note: The spec starts counting at `1`, the returned function at `0`). |
35 | 35 | |
36 | __Example:__ | |
36 | 37 | ```js |
37 | 38 | var check = nthCheck.compile([2, 3]); |
38 | 39 | |
46 | 47 | ``` |
47 | 48 | |
48 | 49 | --- |
49 | License: BSD⏎ | |
50 | License: BSD |