Merge pull request #5319 from pimterry/lodash-concat

Make lodash _().concat support its full auto-flattening API
This commit is contained in:
Masahiro Wakame
2015-08-22 00:43:49 +09:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -129,6 +129,7 @@ result = <_.LoDashObjectWrapper<_.Dictionary<string>>>_(<{ [index: string]: stri
//Wrapped array shortcut methods
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).concat(5, 6);
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).concat([5, 6]);
result = <string>_([1, 2, 3, 4]).join(',');
result = <number>_([1, 2, 3, 4]).pop();
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).push(5, 6, 7);
+1 -1
View File
@@ -252,7 +252,7 @@ declare module _ {
interface LoDashObjectWrapper<T> extends LoDashWrapperBase<T, LoDashObjectWrapper<T>> { }
interface LoDashArrayWrapper<T> extends LoDashWrapperBase<T[], LoDashArrayWrapper<T>> {
concat(...items: T[]): LoDashArrayWrapper<T>;
concat(...items: Array<T|Array<T>>): LoDashArrayWrapper<T>;
join(seperator?: string): string;
pop(): T;
push(...items: T[]): LoDashArrayWrapper<T>;