2022-01-21 08:28:41 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var indexOf = require("./e-index-of");
|
|
|
|
|
2022-03-14 15:40:45 +00:00
|
|
|
module.exports = function (value /*, fromIndex*/) {
|
2022-01-21 08:28:41 +00:00
|
|
|
var result = [], i, fromIndex = arguments[1];
|
|
|
|
while ((i = indexOf.call(this, value, fromIndex)) !== -1) {
|
|
|
|
result.push(i);
|
|
|
|
fromIndex = i + 1;
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
};
|