UNPKG

typescriptkit

Version:

Basic functionality for TypeScript projects

42 lines (40 loc) 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Helper Utility for system types */ class SystemTypeHelper { } /** * Check whether an object is an array * @param object The object to check whether it it's an array */ SystemTypeHelper.isArray = (object) => object instanceof Array; /** * Check whether an object is an object * @param object The object to check whether it it's an object */ SystemTypeHelper.isObject = (object) => object instanceof Object; /** * Check whether an object is a string * @param object The object to check whether it it's an object */ SystemTypeHelper.isString = (object) => typeof (object) === typeof (String()); /** * Check whether an object is a function * @param object The object to check whether it it's a function */ SystemTypeHelper.isFunction = (object) => typeof (object) === typeof (Function()); /** * Check whether an object is a numeric value * @param object The object to check whether it it's a number */ SystemTypeHelper.isNumber = (object) => typeof (object) === typeof (0); /** * Check whether an object is a boolean value * @param object The object to check whether it it's a boolean */ SystemTypeHelper.isBoolean = (object) => typeof (object) === typeof (true); exports.SystemTypeHelper = SystemTypeHelper; exports.default = SystemTypeHelper; //# sourceMappingURL=SystemTypeHelper.js.map