iterable-findallindices
Get indices of all values in iterable that satisfy the test, like Array.findIndex().
const findAllIndices = require('iterable-findallindices');
// findAllIndices(<iterable>, <test function>, [this])
findIndex(['a', 'b', 'c'], (v) => v>'a');
// [1, 2]
findIndex('a,b,c', (v) => v>'a');
// [2, 4]
findIndex(new Set().add('A').add('B'), (v, i) => v>'a');
// []
findIndex(new Map().set('a', 1).set('b', 2), (v, i, itr) => v[1]>1);
// [1]