MCPcopy Create free account
hub / github.com/RubyLouvre/anu / isInteger

Function isInteger

test/babel.js:54652–54654  ·  view source on GitHub ↗

* Checks if `value` is an integer. * * **Note:** This method is based on * [`Number.isInteger`](https://mdn.io/Number/isInteger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an

(value)

Source from the content-addressed store, hash-verified

54650 * // => false
54651 */
54652 function isInteger(value) {
54653 return typeof value == 'number' && value == toInteger(value);
54654 }
54655
54656 module.exports = isInteger;
54657

Callers

nothing calls this directly

Calls 1

toIntegerFunction · 0.85

Tested by

no test coverage detected