UNPKG

ts-cast

Version:
4 lines (3 loc) 177 B
import { withName } from '../helpers/names'; export const notEqual = (pattern) => withName((value) => value !== pattern, `not equal to ${pattern}`); export const ne = notEqual;