UNPKG

ts-cast

Version:
6 lines (5 loc) 308 B
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;