diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 0038741ee..9dc9a6f99 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -711,6 +711,8 @@ result = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) result[key] = num * 3; }); +result = _.values({ 'one': 1, 'two': 2, 'three': 3 }); + //////////////////////////////////////////////////////////////////////////////////////// //WHAT'S LEFT //////////////////////////////////////////////////////////////////////////////////////// diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 76f2ff2a1..8c4e16294 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2694,7 +2694,14 @@ declare module _ { collection: Collection, callback?: MemoIterator, accumulator?: any, - thisArg?: any): any + thisArg?: any): any; + + /** + * Creates an array composed of the own enumerable property values of object. + * @param object The object to inspect. + * @return Returns an array of property values. + **/ + export function values(object: any): any[]; @@ -2736,12 +2743,7 @@ declare module _ { - /** - * Return all of the values of the object's properties. - * @param object Retreive the values of all the properties on this object. - * @return List of all the values on `object`. - **/ - export function values(object: any): any[]; +