1.0.7 • Published 4 years ago
binarysjs v1.0.7
:information_source: How to use
$ npm install binarysjs
# $ yarn add binarysjs
const { getIndex } = require('binarysjs');
const index = getIndex(target, array, startIndex?, endIndex?)
// target = The value you want to find
// array = The array you want to search in
// startIndex && endIndex = optional parameters you don't want to check the whole array
Return values
- Any number bigger than or equal to zero: Found value index
- -1: Value not found
:rocket: Techs
- Node.js
- Typescript
- Jest
:memo: License
This project is under the MIT license. See the LICENSE for more information.
Made with :hearts: by Giovani Farias :wave: Get in touch!