stroke-object
v0.1.1
Published
Turns object values into their array index counterparts
Downloads
6
Maintainers
Readme
node-stroke-object
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.