Needlessly Provoking Marsupials

    array_reorder

    0.0.6 • Public • Published

    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

    Keywords

    Install

    npm i array_reorder

    DownloadsWeekly Downloads

    0

    Version

    0.0.6

    License

    ISC

    Last publish

    Collaborators

    • alxlchnr