A lib to let you always get correct index of an array.
install
npm i correct-index --save
For example:
const correctIndex = const array = 0 1 2 3 // return index as 0 // return index as 3 // return index as 0 // return index as 1
A lib to let you always get correct index of an array.
npm i correct-index --save
For example:
const correctIndex = const array = 0 1 2 3 // return index as 0 // return index as 3 // return index as 0 // return index as 1
npm i correct-index
2
1.0.0
ISC