]> git.r.bdr.sh - rbdr/dotfiles/blob
6b89157a35b805a784ec9316eba256d199b93eca
[rbdr/dotfiles] /
1 'use strict';
2
3 var indexOf = require('./e-index-of');
4
5 module.exports = function (value/*, fromIndex*/) {
6 var r = [], i, fromIndex = arguments[1];
7 while ((i = indexOf.call(this, value, fromIndex)) !== -1) {
8 r.push(i);
9 fromIndex = i + 1;
10 }
11 return r;
12 };