You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314 |
- "use strict";
-
- var isValue = require("../value/is");
-
- module.exports = function (value) {
- if (!isValue(value)) return null;
- try {
- value = +value; // Ensure implicit coercion
- } catch (error) {
- return null;
- }
- if (isNaN(value)) return null;
- return value;
- };
|