UNPKG

ts-cast

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