gte
gte() function
Returns true if the first argument is greater or equal than the second; false otherwise.
Signature:declare function gte(a: Date, b: Date): boolean;
declare function gte(a: Date): (b: Date) => boolean;
declare function gte(a: string, b: string): boolean;
declare function gte(a: number, b: number): boolean;
declare function gte(a: string): (b: string) => boolean;
declare function gte(a: number): (b: number) => boolean;
Example
gte(5, 1) // expected true
gte(1, 1) // expected true
gte(1, 5) // expected false
gte("a", "b") // expected false
gte("b", "a") // expected true
filter(gte(5), [1, 2, 4, 5, 8, 9]) // Iterable<[1, 2, 4, 5]>
filter(gte(1), [2, 3, 4]) // Iterable<[]>
filter(gte("b"), ["a", "b", "c"]) // Iterable<["a", "b"]>
filter(gte("a"), ["b"]) // Itreable<[]>