source: node_modules/ramda-adjunct/lib/isNotFloat.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.2 KB
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6var _isFloat = _interopRequireDefault(require("./isFloat"));
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8/**
9 * Checks whether the passed value is complement of a `float`.
10 *
11 * @func isNotFloat
12 * @memberOf RA
13 * @since {@link https://char0n.github.io/ramda-adjunct/1.14.0|v1.14.0}
14 * @category Type
15 * @sig * -> Boolean
16 * @param {*} val The value to test
17 * @return {boolean}
18 * @see {@link RA.isFloat|isFloat}
19 * @example
20 *
21 * RA.isNotFloat(0); //=> true
22 * RA.isNotFloat(1); //=> true
23 * RA.isNotFloat(-100000); //=> true
24 *
25 * RA.isNotFloat(0.1); //=> false
26 * RA.isNotFloat(Math.PI); //=> false
27 *
28 * RA.isNotFloat(NaN); //=> true
29 * RA.isNotFloat(Infinity); //=> true
30 * RA.isNotFloat(-Infinity); //=> true
31 * RA.isNotFloat('10'); //=> true
32 * RA.isNotFloat(true); //=> true
33 * RA.isNotFloat(false); //=> true
34 * RA.isNotFloat([1]); //=> true
35 */
36var isNotFloat = (0, _ramda.curryN)(1, (0, _ramda.complement)(_isFloat["default"]));
37var _default = isNotFloat;
38exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.