UNPKG

ramda-adjunct

Version:

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

32 lines (28 loc) 912 B
import { identical } from 'ramda'; /** * Checks if input value is the Boolean primitive `false`. Will return false for all values created * using the `Boolean` function as a constructor. * * @func isFalse * @memberOf RA * @since {@link https://char0n.github.io/ramda-adjunct/2.6.0|v2.6.0} * @category Type * @sig * -> Boolean * @param {*} val The value to test * @return {boolean} * @see {@link RA.isTrue|isTrue}, {@link RA.isTruthy|isTruthy}, {@link RA.isFalsy|isFalsy} * @example * * RA.isFalse(false); // => true * RA.isFalse(Boolean(false)); // => true * RA.isFalse(true); // => false * RA.isFalse(0); // => false * RA.isFalse(''); // => false * RA.isFalse(null); // => false * RA.isFalse(undefined); // => false * RA.isFalse(NaN); // => false * RA.isFalse([]); // => false * RA.isFalse(new Boolean(false)); // => false */ const isFalse = identical(false); export default isFalse;