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