mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
added _(...).flatten defs
This commit is contained in:
@@ -188,6 +188,10 @@ result = <number[]>_.flatten([1, [2], [3, [[4]]]]);
|
||||
result = <any[]>_.flatten([1, [2], [3, [[4]]]], true);
|
||||
result = <string[]>_.flatten(stoogesQuotes, 'quotes');
|
||||
|
||||
result = <number[]>_([1, [2], [3, [[4]]]]).flatten();
|
||||
result = <any[]>_([1, [2], [3, [[4]]]]).flatten(true);
|
||||
result = <string[]>_(stoogesQuotes).flatten('quotes');
|
||||
|
||||
result = <number>_.indexOf([1, 2, 3, 1, 2, 3], 2);
|
||||
result = <number>_.indexOf([1, 2, 3, 1, 2, 3], 2, 3);
|
||||
result = <number>_.indexOf([1, 1, 2, 2, 3, 3], 2, true);
|
||||
|
||||
Vendored
+7
@@ -495,6 +495,13 @@ declare module _ {
|
||||
callback?: ListIterator<any, any>,
|
||||
thisArg?: any): any[];
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
flatten(
|
||||
isShallow?,
|
||||
callback?: ListIterator<any, any>,
|
||||
thisArg?: any): any[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @see _.first
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user