[ramda]: Add startsWith definition

This commit is contained in:
Miloslav Nenadal
2017-07-04 14:06:50 +02:00
parent cab8d0e70e
commit acc192069e

View File

@@ -1508,6 +1508,12 @@ declare namespace R {
splitWhen<T, U>(pred: (val: T) => boolean, list: U[]): U[][];
splitWhen<T>(pred: (val: T) => boolean): <U>(list: U[]) => U[][];
/**
* Checks if a list starts with the provided values
*/
startsWith(a: any, list: any): boolean;
startsWith(a: any): (list: any) => boolean;
/**
* Subtracts two numbers. Equivalent to `a - b` but curried.
*/