gte() function
最初の引数が 2 番目の引数以上の場合は true を返し、それ以外の場合は false を返します。
Signature:
typescript
declare function gte(a: string): (b: string) => boolean;Example
ts
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<[]>