source:
trip-planner-front/node_modules/indexes-of/index.js@
6a80231
Last change on this file since 6a80231 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 153 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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.