my-idlers/node_modules/es5-ext/object/ensure-finite-number.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

10 lines
296 B
JavaScript
Vendored

"use strict";
var isFiniteNumber = require("./is-finite-number")
, safeToString = require("../safe-to-string");
module.exports = function (value) {
if (isFiniteNumber(value)) return Number(value);
throw new TypeError(safeToString(value) + " does not represent a finite number value");
};