Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 322 Bytes

readme.md

File metadata and controls

21 lines (13 loc) · 322 Bytes

String Indexes

Retrieves all indexes, in non-overlapping ranges, of a substring in a string.

Install

npm install --save string-indexes

Usage

import getIndexes from 'string-indexes';

getIndexes ( 'xxxx__xxxx__xxxxx', 'xx' ); // => [0, 2, 6, 8, 12, 14]

License

MIT © Fabio Spampinato