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.0 KB
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports["default"] = void 0;
|
---|
| 5 | var _ramda = require("ramda");
|
---|
| 6 | var _toUinteger = _interopRequireDefault(require("./toUinteger32"));
|
---|
| 7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
---|
| 8 | /**
|
---|
| 9 | * Checks whether the passed value is an unsigned 32 bit integer.
|
---|
| 10 | *
|
---|
| 11 | * @func isUinteger32
|
---|
| 12 | * @aliases isUint32
|
---|
| 13 | * @memberOf RA
|
---|
| 14 | * @since {@link https://char0n.github.io/ramda-adjunct/3.2.0|v3.2.0}
|
---|
| 15 | * @category Type
|
---|
| 16 | * @sig * -> Boolean
|
---|
| 17 | * @param {*} val The value to test
|
---|
| 18 | * @return {boolean}
|
---|
| 19 | * @see {@link RA.toUinteger32|toUinteger32}
|
---|
| 20 | * @example
|
---|
| 21 | *
|
---|
| 22 | * RA.isUinteger32(0); //=> true
|
---|
| 23 | * RA.isUinteger32(2 ** 32 - 1); //=> true
|
---|
| 24 | *
|
---|
| 25 | * RA.isUinteger32(Infinity); //=> false
|
---|
| 26 | * RA.isUinteger32(NaN); //=> false
|
---|
| 27 | * RA.isUinteger32(-1); //=> false
|
---|
| 28 | * RA.isUinteger32(2 ** 32); //=> false
|
---|
| 29 | */
|
---|
| 30 | var isUinteger32 = (0, _ramda.curryN)(1, function (val) {
|
---|
| 31 | return (0, _toUinteger["default"])(val) === val;
|
---|
| 32 | });
|
---|
| 33 | var _default = isUinteger32;
|
---|
| 34 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.