@scaleway/sdk-client
Version:
Scaleway SDK Client
16 lines (15 loc) • 475 B
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const json = require("../../helpers/json.cjs");
const isRecordOfStringArray = (obj) => {
if (!json.isJSONObject(obj)) {
return false;
}
for (const elt of Object.values(obj)) {
if (!Array.isArray(elt) || Object.values(elt).find((x) => typeof x !== "string") !== void 0) {
return false;
}
}
return true;
};
exports.isRecordOfStringArray = isRecordOfStringArray;
;