Added _.allKeys function

This commit is contained in:
Daniel Furtado
2015-12-28 19:13:22 +01:00
parent 5566b09818
commit 28dfdd9964
+19
View File
@@ -1226,6 +1226,13 @@ interface UnderscoreStatic {
**/
keys(object: any): string[];
/**
* Retrieve all the names of object's own and inherited properties.
* @param object Retrieve the key or property names from this object.
* @return List of all the property names on `object`.
**/
allKeys(object: any): string[];
/**
* Return all of the values of the object's properties.
* @param object Retrieve the values of all the properties on this object.
@@ -2301,6 +2308,12 @@ interface Underscore<T> {
**/
keys(): string[];
/**
* Wrapped type `object`.
* @see _.allKeys
**/
allKeys(): string[];
/**
* Wrapped type `object`.
* @see _.values
@@ -3213,6 +3226,12 @@ interface _Chain<T> {
**/
keys(): _Chain<string>;
/**
* Wrapped type `object`.
* @see _.allKeys
**/
allKeys(): _Chain<string>;
/**
* Wrapped type `object`.
* @see _.values