generate-object-property
v2.0.0
Published
Generate safe JS code that can used to reference a object property
Downloads
4,850,338
Readme
generate-object-property
Generate safe JS code that can used to reference a object property
npm install generate-object-property
Usage
var gen = require('generate-object-property');
console.log(gen('a','b')); // prints a.b
console.log(gen('a', 'foo-bar')); // prints a["foo-bar"]
License
MIT