Codebase list node-nth-check / 13c72e7
added Travis badge Felix Böhm 10 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 #nth-check
0 #nth-check [![Build Status](https://travis-ci.org/fb55/nth-check.png)](https://travis-ci.org/fb55/nth-check)
11
22 A performant nth-check parser & compiler.
33
3333
3434 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`).
3535
36 __Example:__
3637 ```js
3738 var check = nthCheck.compile([2, 3]);
3839
4647 ```
4748
4849 ---
49 License: BSD
50 License: BSD