ben-jsutils
v0.6.2
Published
A personal collection of useful JS utilities
Downloads
5
Readme
ben-jsutils
My personal collection of useful JS utilities. Functions are broken down into categories:
There are some general use functions in the main file.
To import these functions, run
var ben = require('ben-jsutils');
To use a function (for example, sort an array), run
var arr1 = [4, 2, 3, 5, 7, 1];
var sorted = ben.arr.sort2(arr1); // [[1, 2, 3, 4, 5, 7], [5, 1, 2, 0, 3, 4]]