diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 5f5c669b0b..e18e5f6b37 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2422,7 +2422,7 @@ declare module _ { ): LoDashArrayWrapper; } - //_.includes + //_.contains interface LoDashStatic { /** * Checks if a given value is present in a collection using strict equality for comparisons, @@ -2432,49 +2432,13 @@ declare module _ { * @param fromIndex The index to search from. * @return True if the target element is found, else false. **/ - includes( - collection: Array, - target: T, - fromIndex?: number): boolean; - - /** - * @see _.includes - **/ - includes( - collection: List, - target: T, - fromIndex?: number): boolean; - - /** - * @see _.includes - * @param dictionary The dictionary to iterate over. - * @param key The key in the dictionary to search for. - **/ - includes( - dictionary: Dictionary, - key: string, - fromIndex?: number): boolean; - - /** - * @see _.includes - * @param searchString the string to search - * @param targetString the string to search for - **/ - includes( - searchString: string, - targetString: string, - fromIndex?: number): boolean; - - /** - * @see _.includes - **/ contains( collection: Array, target: T, fromIndex?: number): boolean; /** - * @see _.includes + * @see _.contains **/ contains( collection: List, @@ -2482,7 +2446,7 @@ declare module _ { fromIndex?: number): boolean; /** - * @see _.includes + * @see _.contains * @param dictionary The dictionary to iterate over. * @param value The value in the dictionary to search for. **/ @@ -2492,7 +2456,7 @@ declare module _ { fromIndex?: number): boolean; /** - * @see _.includes + * @see _.contains * @param searchString the string to search * @param targetString the string to search for **/ @@ -2501,9 +2465,8 @@ declare module _ { targetString: string, fromIndex?: number): boolean; - /** - * @see _.includes + * @see _.contains **/ include( collection: Array, @@ -2511,7 +2474,7 @@ declare module _ { fromIndex?: number): boolean; /** - * @see _.includes + * @see _.contains **/ include( collection: List, @@ -2519,7 +2482,7 @@ declare module _ { fromIndex?: number): boolean; /** - * @see _.includes + * @see _.contains **/ include( dictionary: Dictionary, @@ -2527,7 +2490,7 @@ declare module _ { fromIndex?: number): boolean; /** - * @see _.includes + * @see _.contains **/ include( searchString: string,