1.5.1 • Published 6 years ago
invarjs v1.5.1
invarjs
Invariable Methods
⚠️ Warning!
This package is for demostration and learning, would not recommend use in production or anywhere really
Overview
Utils functions that do not mutate input
Install
npm install invarjs --save-dev
Utils
import methods
code splitting supported
import { find } from "invarjs/array/find";
const invarjs = require("invarjs").default;
invarjs.array.find();
docs
reverse
reserve([3, 2, 1]); //1, 2, 3
remove
remove([3, 2, 1], 2); //3, 2
update
update([3, 2, 1], 2, 3); //3, 2, 3