UNPKG

taggedjs

Version:

tagged template reactive html

17 lines 532 B
import { isArray } from '../isInstance.js'; import { getSimpleTagVar } from './getSimpleTagVar.function.js'; import { getArrayTagVar } from './getArrayTagJsTag.function.js'; export function valueToTagJsTag(value) { const tagJsType = value?.tagJsType; if (tagJsType) { return value; } return getBasicTagVar(value); } function getBasicTagVar(value) { if (isArray(value)) { return getArrayTagVar(value); } return getSimpleTagVar(value); } //# sourceMappingURL=valueToTagJsTag.function.js.map