5 * Check whether it's a number or a number-like string:
6 * i.e. when coerced to a number it == itself.
8 module.exports = function(value) {
9 /* eslint-disable eqeqeq */
10 return value.trim().length !== 0 && Number(value) == value;
11 /* eslint-enable eqeqeq */