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