array_reorder
0.0.6 • Public • Published
array-reorder
Provides a reorder function which reorders the elements of an array according to a given configuration object.
usage:
var array_reorder = require('array_reorder');
var reorderedArray=array_reorder.reorder(['a', 'b'], {0: 1, 1: 0})
running tests
I'm using mocha and better-objects for my tests
Package Sidebar
Install
Weekly Downloads