UNPKG

@scaleway/sdk-client

Version:
16 lines (15 loc) 370 B
import { isJSONObject } from "../../helpers/json.js"; const isRecordOfStringArray = (obj) => { if (!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; }; export { isRecordOfStringArray };