frontend/.pnpm-store/v3/files/66/fdadc74046932b3237d451f3d2112fd6b6832910a5ce91959b5e0b6a1c8b7fdecb9750f10aa1b8d0eccb3833d6c2548e9efa652ed4b2b2765fbc176fb235a1

10 lines
269 B
Plaintext

"use strict";
var toShortString = require("../to-short-string-representation")
, isInteger = require("./is-integer");
module.exports = function (num) {
if (!isInteger(num)) throw new TypeError(toShortString(num) + " is not a integer");
return Number(num);
};