lt
lt() function
Returns true if the first argument is less than the second; false otherwise.
Signature:
declare function lt(a: string): (b: string) => boolean;
Returns:
(b: string) => boolean
Example
lt(5, 1) // expected false
lt(1, 5) // expected true
lt("a", "b") // expected true
lt("b", "a") // expected false
filter(lt(5), [1, 2, 4, 5, 8, 9]) // Iterable<[8, 9]>
filter(lt(7), [5, 6, 7]) // Iterable<[]>
filter(lt("b"), ["a", "b", "c"]) // Iterable<["c"]>
filter(lt("e"), ["b", "c", "d"]) // Itreable<[]>