0.0.6 • Published 5 years ago

@andrewnoyes/array-utils v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

array-utils

Collection of various array utility functions

Installation

npm install @andrewnoyes/array-utils --save
yarn add @andrewnoyes/array-utils

Usage

import { immutablePop, immutablePush, reorder } from '@andrewnoyes/array-utils';

// pop
const popResult = immutablePop([1, 2, 3]); // [1, 2]

// push
const pushResult = immutablePush([1, 2, 3], 4); // [1, 2, 3, 4]

// reorder
const reorderResult = reorder([1, 2, 3], 0, 2); // [2, 3, 1]
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago