function isDef(value: any): boolean { return value !== undefined && value !== null; } function isObj(x: any): boolean { const type = typeof x; return x !== null && (type === 'object' || type === 'function'); } function isNumber(value) { return /^\d+$/.test(value); } export { isObj, isDef, isNumber };