From 28dfdd9964e4c62bafaf7d4417f2e3b38f9d8e2b Mon Sep 17 00:00:00 2001 From: Daniel Furtado Date: Mon, 28 Dec 2015 19:13:22 +0100 Subject: [PATCH] Added _.allKeys function --- underscore/underscore.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index 95dbd3bcf..bec1dca8c 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -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 { **/ keys(): string[]; + /** + * Wrapped type `object`. + * @see _.allKeys + **/ + allKeys(): string[]; + /** * Wrapped type `object`. * @see _.values @@ -3213,6 +3226,12 @@ interface _Chain { **/ keys(): _Chain; + /** + * Wrapped type `object`. + * @see _.allKeys + **/ + allKeys(): _Chain; + /** * Wrapped type `object`. * @see _.values