index.js 153 B

123456
  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. }