autosql
Version:
An auto-parser of JSON into SQL.
13 lines (12 loc) • 421 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMetadataHeader = isMetadataHeader;
function isMetadataHeader(obj) {
return (obj !== null &&
typeof obj === "object" &&
!Array.isArray(obj) &&
Object.values(obj).every((col) => typeof col === "object" &&
col !== null &&
"type" in col &&
typeof col.type === "string"));
}