indicesof (npm): Just like indexOf(), but returns an array of all occurrences. Works on both strings and buffers.
Keywords: indexOf|indicesOf