ARRAY METHOD (FIND MULTIPLE INDICES)
[10, 7, 13, 15, 230].map((e,i) => e > 13 ? i : undefined).filter(x => x) //returns [3, 4](*** RETURNS multiple indexes ***) //FILTER (is simply just REMOVING the UNDEFINED elements (which are FALSY and considered the same as FALSE)
otherwise you get ...
[10, 7, 13, 15, 230].map((e,i) => e > 13 ? i : undefined) //returns [undefined, undefined, undefined, 3, 4]
RETURN SEVERAL INDEXES (replaces the findIndex method)
[1, 1, 2, 2, 2, 3, 4, 5].map((e,i) => e === 2 ? i : undefined).filter(x => x)
RETURN SEVERAL VALUES (replaces METHOD method)
[5, 12, 8, 130, 44].map((e,i) => e > 13 ? e : undefined).filter(x => x)