js取得対象のkey値


keys_.keys(object) Objectが所有する列挙可能な属性の名前を検索します.
_.keys({one: 1, two: 2, three: 3});
=> ["one", "two", "three"]
allKeys_.allKeys(object) objectが持つ、引き継ぐすべての属性の名前を検索します.
function Stooge(name) {
  this.name = name;
}
Stooge.prototype.silly = true;
_.allKeys(new Stooge("Moe"));
=> ["name", "silly"]
http://underscorejs.org/#values