source: node_modules/ramda-adjunct/lib/isNotGeneratorFunction.js

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
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6var _isGeneratorFunction = _interopRequireDefault(require("./isGeneratorFunction"));
7function _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 */
28var isNotGeneratorFunction = (0, _ramda.complement)(_isGeneratorFunction["default"]);
29var _default = isNotGeneratorFunction;
30exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.