Skip to content

ramongr/op-array

Repository files navigation

OP Array

Maintainability codecov

Using the Array's prototype chain to add extra methods.

Installation

Install the npm package

yarn add op-array

or

npm install op-array

How to use

// findBy, findById, where
import 'op-array/dist/collections';
// For operations like: intersection, existance...
import 'op-array/dist/logical';
// For operations like: min, max, sum...
import 'op-array/dist/numerical';
// Adds first, second and last as array properties
import 'op-array/dist/positional';
// For operations like: unique, flat, inGroups...
import 'op-array/dist/transformations';

Functions - Collections

Click here to see examples

Functions - Logical

Click here to see examples

Functions - Numerical

Click here to see examples

Functions - Positional

Click here to see examples

Functions - Transformations

Click here to see examples

About

Extends the Array's prototype chain with multiple methods to improve JS coding flexibility

Resources

Stars

Watchers

Forks