UNPKG

@antv/t8

Version:

T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.

32 lines (29 loc) 702 B
'use strict'; function isString(val) { return typeof val === 'string'; } function isObject(val) { return typeof val === 'object'; } function isFunction(val) { return typeof val === 'function'; } function isNil(val) { return val === null || val === undefined; } function isEmpty(val) { if (Array.isArray(val)) { return val.length === 0; } return val === null || val === undefined || val === ''; } function isNumber(val) { return typeof val === 'number'; } exports.isEmpty = isEmpty; exports.isFunction = isFunction; exports.isNil = isNil; exports.isNumber = isNumber; exports.isObject = isObject; exports.isString = isString; //# sourceMappingURL=isType.js.map