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.

13 lines (10 loc) 389 B
'use strict'; var isFunction = function (val) { return typeof val === 'function'; }; function functionalize(val, defaultVal) { // eslint-disable-next-line @typescript-eslint/no-unused-vars return isFunction(val) ? val : function () { return (val === undefined ? defaultVal : val); }; } exports.functionalize = functionalize; //# sourceMappingURL=functionalize.js.map