@neutrium/utilities
Version:
A collection of general purpose utility objects for the NeutriumJS library.
16 lines (15 loc) • 399 B
JavaScript
//
// Type guards for the NeutriumJS library
//
;
var typeguards;
(function (typeguards) {
function isNumber(x) {
return typeof x === "number" && isFinite(x);
}
typeguards.isNumber = isNumber;
function isString(x) {
return typeof x === "string";
}
typeguards.isString = isString;
})(typeguards = exports.typeguards || (exports.typeguards = {}));