Skip to content

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

License

Notifications You must be signed in to change notification settings

fabiospampinato/string-indexes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published