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:
1.1 KB
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports["default"] = void 0;
|
---|
| 5 | var _ramda = require("ramda");
|
---|
| 6 | var _isGeneratorFunction = _interopRequireDefault(require("./isGeneratorFunction"));
|
---|
| 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 `Generator Function`
|
---|
| 11 | *
|
---|
| 12 | * @func isNotGeneratorFunction
|
---|
| 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.isNotGeneratorFunction(function* test() { }); //=> false
|
---|
| 23 | * RA.isNotGeneratorFunction(null); //=> true
|
---|
| 24 | * RA.isNotGeneratorFunction(function test() { }); //=> true
|
---|
| 25 | * RA.isNotGeneratorFunction(() => {}); //=> true
|
---|
| 26 | */
|
---|
| 27 | /* eslint-enable max-len */
|
---|
| 28 | var isNotGeneratorFunction = (0, _ramda.complement)(_isGeneratorFunction["default"]);
|
---|
| 29 | var _default = isNotGeneratorFunction;
|
---|
| 30 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.