ts-cast
Version:
Runtime typechecking
6 lines (5 loc) • 308 B
JavaScript
import { withName } from '../helpers/names';
export const lessThen = (limit) => withName((value) => value < limit, `less then ${limit}`);
export const lt = lessThen;
export const notGreaterThen = (limit) => withName((value) => value <= limit, `not greater then ${limit}`);
export const lte = notGreaterThen;