main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
877 bytes
|
Line | |
---|
1 | import { complement } from 'ramda';
|
---|
2 |
|
---|
3 | import isAsyncFunction from './isAsyncFunction';
|
---|
4 |
|
---|
5 | /* eslint-disable max-len */
|
---|
6 | /**
|
---|
7 | * Checks if input value is complement of `Async Function`
|
---|
8 | *
|
---|
9 | * @func isNotAsyncFunction
|
---|
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|isAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
---|
17 | * @example
|
---|
18 | *
|
---|
19 | * RA.isNotAsyncFunction(async function test() { }); //=> false
|
---|
20 | * RA.isNotAsyncFunction(null); //=> true
|
---|
21 | * RA.isNotAsyncFunction(function test() { }); //=> true
|
---|
22 | * RA.isNotAsyncFunction(() => {}); //=> true
|
---|
23 | */
|
---|
24 | /* eslint-enable max-len */
|
---|
25 | const isNotAsyncFunction = complement(isAsyncFunction);
|
---|
26 |
|
---|
27 | export default isNotAsyncFunction;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.