UNPKG

ramda-adjunct

Version:

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

29 lines (28 loc) 1.14 kB
"use strict"; exports.__esModule = true; exports["default"] = void 0; var _ramda = require("ramda"); var _isGeneratorFunction = _interopRequireDefault(require("./isGeneratorFunction.js")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } /* eslint-disable max-len */ /** * Checks if input value is complement of `Generator Function` * * @func isNotGeneratorFunction * @memberOf RA * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0} * @category Type * @sig * -> Boolean * @param {*} val The value to test * @return {boolean} * @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction} * @example * * RA.isNotGeneratorFunction(function* test() { }); //=> false * RA.isNotGeneratorFunction(null); //=> true * RA.isNotGeneratorFunction(function test() { }); //=> true * RA.isNotGeneratorFunction(() => {}); //=> true */ /* eslint-enable max-len */ var isNotGeneratorFunction = (0, _ramda.complement)(_isGeneratorFunction["default"]); var _default = exports["default"] = isNotGeneratorFunction;