source: trip-planner-front/node_modules/indexes-of/index.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 153 bytes
RevLine 
[6a3a178]1module.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.