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