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:
901 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports["default"] = void 0;
|
---|
| 5 | var _ramda = require("ramda");
|
---|
| 6 | /**
|
---|
| 7 | * Checks if input value is `Async Function`.
|
---|
| 8 | *
|
---|
| 9 | * @func isAsyncFunction
|
---|
| 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.isNotAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
---|
| 17 | * @example
|
---|
| 18 | *
|
---|
| 19 | * RA.isAsyncFunction(async function test() { }); //=> true
|
---|
| 20 | * RA.isAsyncFunction(null); //=> false
|
---|
| 21 | * RA.isAsyncFunction(function test() { }); //=> false
|
---|
| 22 | * RA.isAsyncFunction(() => {}); //=> false
|
---|
| 23 | */
|
---|
| 24 | var isAsyncFunction = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('AsyncFunction')));
|
---|
| 25 | var _default = isAsyncFunction;
|
---|
| 26 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.