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:
1.1 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _ramda = require("ramda");
|
---|
6 | var _isAsyncFunction = _interopRequireDefault(require("./isAsyncFunction"));
|
---|
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
---|
8 | /* eslint-disable max-len */
|
---|
9 | /**
|
---|
10 | * Checks if input value is complement of `Async Function`
|
---|
11 | *
|
---|
12 | * @func isNotAsyncFunction
|
---|
13 | * @memberOf RA
|
---|
14 | * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
---|
15 | * @category Type
|
---|
16 | * @sig * -> Boolean
|
---|
17 | * @param {*} val The value to test
|
---|
18 | * @return {boolean}
|
---|
19 | * @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
---|
20 | * @example
|
---|
21 | *
|
---|
22 | * RA.isNotAsyncFunction(async function test() { }); //=> false
|
---|
23 | * RA.isNotAsyncFunction(null); //=> true
|
---|
24 | * RA.isNotAsyncFunction(function test() { }); //=> true
|
---|
25 | * RA.isNotAsyncFunction(() => {}); //=> true
|
---|
26 | */
|
---|
27 | /* eslint-enable max-len */
|
---|
28 | var isNotAsyncFunction = (0, _ramda.complement)(_isAsyncFunction["default"]);
|
---|
29 | var _default = isNotAsyncFunction;
|
---|
30 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.