npm.io
1.0.2 • Published 1 year ago

craydent.indexofalt

Licence
MIT
Version
1.0.2
Deps
7
Size
18 kB
Vulns
0
Weekly
0

Craydent 1.0.2

by Clark Inada

Craydent is all inclusive utility library. There are several ways to use the library in NodeJS. More detailed documentation on constants can be found at Craydent Properties. More detailed documentation on methods can be found at Craydent Methods

// require - this require is the fully modular version with no global constants, prototypes, or methods.
const indexOfAlt = require('craydent.indexOfAlt').default;
// import - this require is the fully modular version with no global constants, prototypes, or methods.
import indexOfAlt from 'craydent.indexOfAlt';

indexOfAlt

Info: Array class extension to find index of a value based on a callback function & String class extension to find the index based on a regular expression

Return: (Int) returns the index of the item that matches or -1.

Parameters:

None

Overloads:

None

Download