UNPKG

tf2-item-format

Version:
13 lines 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; function default_1(str) { /** Why this works: * 1. Any non-NaN number is not NaN * 2. isNaN considers any numeric string to be not NaN * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN * for further reference */ return !isNaN(str); } //# sourceMappingURL=isNumber.js.map