0.0.6 • Published 9 years ago

array_reorder v0.0.6

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

Build Status npm version NPM

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})
// reorderedArray is now ['b','a']

running tests

I'm using mocha and better-objects for my tests

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago