Spaces:
Runtime error
Runtime error
File size: 296 Bytes
b5ea024 |
1 2 3 4 5 6 7 8 9 10 |
"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");
};
|