added _.values definition

This commit is contained in:
Brian Zengel
2013-10-20 17:41:46 -04:00
parent c36fca3f91
commit 5e51cb897d
2 changed files with 11 additions and 7 deletions
+2
View File
@@ -711,6 +711,8 @@ result = <any>_.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key)
result[key] = num * 3;
});
result = <any[]>_.values({ 'one': 1, 'two': 2, 'three': 3 });
////////////////////////////////////////////////////////////////////////////////////////
//WHAT'S LEFT
////////////////////////////////////////////////////////////////////////////////////////
+9 -7
View File
@@ -2694,7 +2694,14 @@ declare module _ {
collection: Collection<T>,
callback?: MemoIterator<T, any>,
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[];