source: node_modules/ramda-adjunct/es/isNotPair.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: 716 bytes
Line 
1import { complement } from 'ramda';
2import isPair from './isPair';
3
4/**
5 * Checks if input value is complement of a pair.
6 *
7 * @func isNotPair
8 * @memberOf RA
9 * @since {@link https://char0n.github.io/ramda-adjunct/1.19.0|v1.19.0}
10 * @category Type
11 * @sig * -> Boolean
12 * @param {*} val The value to test
13 * @return {boolean}
14 * @see {@link http://ramdajs.com/docs/#pair|R.pair}, {@link RA.isPair|isPair}
15 * @example
16 *
17 * RA.isNotPair([]); // => true
18 * RA.isNotPair([0]); // => true
19 * RA.isNotPair([0, 1]); // => false
20 * RA.isNotPair([0, 1, 2]); // => true
21 * RA.isNotPair({0: 0, 1: 1}); // => true
22 * RA.isNotPair({foo: 0, bar: 0}); // => true
23 */
24var isNotPair = complement(isPair);
25export default isNotPair;
Note: See TracBrowser for help on using the repository browser.