UNPKG

@uwdata/mosaic-sql

Version:

SQL query construction and analysis.

28 lines 648 B
/** * Check if a value is a string. * @param value The value to check. */ export function isString(value) { return typeof value === 'string'; } /** * Check if a value is an array. * @param value The value to check. */ export function isArray(value) { return Array.isArray(value); } /** * Check if a value is a dynamic parameter. * @param value The value to check. */ export function isParamLike(value) { if (value) { const v = value; return typeof v?.addEventListener === 'function' && v.dynamic !== false && 'value' in v; } return false; } //# sourceMappingURL=type-check.js.map