summaryrefslogtreecommitdiff
path: root/node_modules/indexes-of/index.js
blob: fda337d3bbd2d78cd3dbef90588880ff6f0dc705 (plain)
1
2
3
4
5
6
module.exports = function (ary, item) {
  var i = -1, indexes = []
  while((i = ary.indexOf(item, i + 1)) !== -1)
    indexes.push(i)
  return indexes
}