Neoclassical Programming Multitude
Have ideas to improve npm?Join in the discussion! »

@bemoje/arr-get-all

1.0.1 • Public • Published

@bemoje/arr-get-all

Retrieve all elements in provided indexes array.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/arr-get-all
npm install --save @bemoje/arr-get-all
npm install --save-dev @bemoje/arr-get-all

Usage

import arrGetAll from '@bemoje/arr-get-all'
 
const arr = ['a', 'b', 'c']
 
arrGetAll(arr, [3])
//=> [undefined]
 
arrGetAll(arr, [1])
//=> ['b']
 
arrGetAll(arr, [1, 2, 3])
//=> ['b', 'c', undefined]
 

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

arrGetAll

Retrieve all elements in provided indexes array.

Parameters
Returns

Array The corresponding elements

Install

npm i @bemoje/arr-get-all

DownloadsWeekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.86 kB

Total Files

5

Last publish

Collaborators

  • avatar