source: node_modules/ramda-adjunct/lib/isNotFunction.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 _isFunction = _interopRequireDefault(require("./isFunction"));
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8/* eslint-disable max-len */
9/**
10 * Checks if input value is complement of `Function`.
11 *
12 * @func isNotFunction
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|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
20 * @example
21 *
22 * RA.isNotFunction(function test() { }); //=> false
23 * RA.isNotFunction(function* test() { }); //=> false
24 * RA.isNotFunction(async function test() { }); //=> false
25 * RA.isNotFunction(() => {}); //=> false
26 * RA.isNotFunction(null); //=> true
27 * RA.isNotFunction('abc'); //=> true
28 */
29/* eslint-enable max-len */
30var isNotFunction = (0, _ramda.complement)(_isFunction["default"]);
31var _default = isNotFunction;
32exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.