source: node_modules/ramda-adjunct/es/isNotAsyncFunction.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 872 bytes
Line 
1import { complement } from 'ramda';
2import isAsyncFunction from './isAsyncFunction';
3
4/* eslint-disable max-len */
5/**
6 * Checks if input value is complement of `Async Function`
7 *
8 * @func isNotAsyncFunction
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|isAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
16 * @example
17 *
18 * RA.isNotAsyncFunction(async function test() { }); //=> false
19 * RA.isNotAsyncFunction(null); //=> true
20 * RA.isNotAsyncFunction(function test() { }); //=> true
21 * RA.isNotAsyncFunction(() => {}); //=> true
22 */
23/* eslint-enable max-len */
24var isNotAsyncFunction = complement(isAsyncFunction);
25export default isNotAsyncFunction;
Note: See TracBrowser for help on using the repository browser.