Sha256: 7765fe822c639416236261b73cdca230a7f031b47bf6a17cfb89fd576314aaeb
Contents?: true
Size: 287 Bytes
Versions: 87
Compression:
Stored size: 287 Bytes
Contents
var isProperty = require('is-property') var gen = function(obj, prop) { return isProperty(prop) ? obj+'.'+prop : obj+'['+JSON.stringify(prop)+']' } gen.valid = isProperty gen.property = function (prop) { return isProperty(prop) ? prop : JSON.stringify(prop) } module.exports = gen
Version data entries
87 entries across 82 versions & 13 rubygems