UNPKG

@hgargg-0710/one

Version:

A tiny npm library purposed for providing beautiful solutions to frequent miniature (one-line/one-expression) tasks for various JS datatypes.

21 lines (20 loc) 494 B
/** * The functional version of `!x` */ export declare const not: (x: any) => boolean; /** * Returns `true`. Good for functional applications */ export declare const T: () => true; /** * Returns `false`. Good for functional applications */ export declare const F: () => false; /** * The functional version of `x === y` */ export declare const equals: (x: any, y: any) => boolean; /** * The curried version of `equals` */ export declare const eqcurry: (x: any) => (y: any) => boolean;