mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added _.values definition
This commit is contained in:
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Vendored
+9
-7
@@ -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[];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user