source:
trip-planner-front/node_modules/indexes-of/index.js@
571e0df
Last change on this file since 571e0df was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 153 bytes |
Line | |
---|---|
1 | module.exports = function (ary, item) { |
2 | var i = -1, indexes = [] |
3 | while((i = ary.indexOf(item, i + 1)) !== -1) |
4 | indexes.push(i) |
5 | return indexes |
6 | } |
Note:
See TracBrowser
for help on using the repository browser.