multiple-needles-indexof
indexOf function with multiple needles. Needles may be a string or a character set RegExp.
Install
npm install multiple-needles-indexof
Example
var mnIndexOf =// pass two needles that matches// {index: 2, match: 'cd'}// pass one needle as string// {index: 1, match: 'b'}// needles don't match// undefined// with offset// {index: 5, match: 'd'}// no needles returns undefined// undefined// with charset regexp needle// {index: 3, match: 'b'}