source:
node_modules/ramda/src/internal/_includesWith.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 228 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | function _includesWith(pred, x, list) { |
2 | var idx = 0; | |
3 | var len = list.length; | |
4 | ||
5 | while (idx < len) { | |
6 | if (pred(x, list[idx])) { | |
7 | return true; | |
8 | } | |
9 | ||
10 | idx += 1; | |
11 | } | |
12 | ||
13 | return false; | |
14 | } | |
15 | ||
16 | module.exports = _includesWith; |
Note:
See TracBrowser
for help on using the repository browser.