mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
string case
This commit is contained in:
Vendored
+3
-1
@@ -1131,10 +1131,12 @@ declare namespace R {
|
||||
inc(n: number): number;
|
||||
|
||||
/**
|
||||
* Given a target, this function checks a list for a target and returns a boolean.
|
||||
* Given a target, this function checks a list or string for a target and returns a boolean.
|
||||
*/
|
||||
includes<T>(target: T, list: ReadonlyArray<T>): boolean;
|
||||
includes<T>(target: T): (list: ReadonlyArray<T>) => boolean;
|
||||
includes<T>(target: T, list: string): boolean;
|
||||
includes<T>(target: T): (list: string) => boolean;
|
||||
|
||||
/**
|
||||
* Given a function that generates a key, turns a list of objects into an object indexing the objects
|
||||
|
||||
@@ -973,7 +973,9 @@ interface Obj {
|
||||
|
||||
() => {
|
||||
R.includes(8, [1, 8]); // => true
|
||||
R.includes(10)([1, 2, 3, 4]); // => false
|
||||
R.includes(10)([2, 3, 5, 8]); // => false
|
||||
R.includes('ba', 'kiwi'); //=>false
|
||||
R.includes('ba', 'banana'); //=>true
|
||||
};
|
||||
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user