source: node_modules/ramda-adjunct/src/isBoolean.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 558 bytes
Line 
1import { type, identical, pipe, curryN } from 'ramda';
2
3/**
4 * Checks if input value is `Boolean`.
5 *
6 * @func isBoolean
7 * @memberOf RA
8 * @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
9 * @category Type
10 * @sig * -> Boolean
11 * @param {*} val The value to test
12 * @return {boolean}
13 * @see {@link RA.isNotBoolean|isNotBoolean}
14 * @example
15 *
16 * RA.isBoolean(false); //=> true
17 * RA.isBoolean(true); //=> true
18 * RA.isBoolean(null); //=> false
19 */
20const isBoolean = curryN(1, pipe(type, identical('Boolean')));
21
22export default isBoolean;
Note: See TracBrowser for help on using the repository browser.