UNPKG

@n3okill/utils

Version:
12 lines 362 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toNumeric = toNumeric; /** * Return a number value from a string or a number * @param {number | string} arg * @returns {number} */ function toNumeric(arg) { return parseInt(arg, 10) == arg ? parseInt(arg, 10) : arg.charCodeAt(0); } //# sourceMappingURL=toNumeric.js.map