source: node_modules/ramda-adjunct/src/isNotFunction.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: 919 bytes
Line 
1import { complement } from 'ramda';
2
3import isFunction from './isFunction';
4
5/* eslint-disable max-len */
6/**
7 * Checks if input value is complement of `Function`.
8 *
9 * @func isNotFunction
10 * @memberOf RA
11 * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
12 * @category Type
13 * @sig * -> Boolean
14 * @param {*} val The value to test
15 * @return {boolean}
16 * @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
17 * @example
18 *
19 * RA.isNotFunction(function test() { }); //=> false
20 * RA.isNotFunction(function* test() { }); //=> false
21 * RA.isNotFunction(async function test() { }); //=> false
22 * RA.isNotFunction(() => {}); //=> false
23 * RA.isNotFunction(null); //=> true
24 * RA.isNotFunction('abc'); //=> true
25 */
26/* eslint-enable max-len */
27const isNotFunction = complement(isFunction);
28
29export default isNotFunction;
Note: See TracBrowser for help on using the repository browser.