lodash-enfuego
Node.JS lodash mixins
Usage
var _ = ;_;
Examples
var user = name: 'Joe Bob'; _; // true var user = name: 'Joe Bob' friends: william: hometown: 'New York City' age: 30 ; _; // true_; // false_; // true_; // false
API
_.hasPath(object, 'path.to.property')
Returns true
or false
.
.hasNumber(object, 'path.to.property')
Returns true
or false
.
.setPath(object, 'path.to.property', value)
Recusively create a path on an object, setting the value of the final property to value
. If value
is excluded then null
will be used as the final property value.
Returns true
or false
.