@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.
11 lines (9 loc) • 361 B
JavaScript
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);
};
}
export { functionalize };
//# sourceMappingURL=functionalize.js.map