Previous Index Of
Find the index of a specific char-sequence in a string at a given offset.
Installation
NPM
$ npm i previous-index-of
Yarn
$ yarn add previous-index-of
Usage
const previousIndexOf = ; // previousIndexOf(sourceString: <string>, target: <string>, offset: <number|undefined>); // 4; // 16; // -1; // 16; // -1; // -1
Running tests
$ npm install -d && npm test