_.allKeys

allKeys_.allKeys(object)
Retrieve all the names of object's own and inherited properties.

function Stooge(name) {
  this.name = name;
}
Stooge.prototype.silly = true;
_.allKeys(new Stooge("Moe"));
=> ["name", "silly"]
doc_Underscore
2016-04-09 09:05:16
Comments
Leave a Comment

Please login to continue.