stroke-object

0.1.1 • Public • Published

node-stroke-object Travis-CI.org Build Status Coveralls.io Coverage Rating

Reverse-lookup an object's keys

Example

var strokeObject = require('stroke-object');
 
var obj = {
    a: 'foo',
    b: 'bar',
    z: 'qux',
    g: 'qix'
};
 
strokeObject(obj);
 
console.log(obj.length); //-> 4
console.log(obj[0]); //-> 'foo'

License

Licensed under the MIT License. You can find a copy of it in LICENSE.

/stroke-object/

    Package Sidebar

    Install

    npm i stroke-object

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • qix