UNPKG

xml-from-object

Version:

Easy, highly typed and customizable way to build your xml using JS/TS plain objects.

6 lines (5 loc) 213 B
export const isArrayOfObject = (possibleArray: any): boolean => { const isArray = Array.isArray(possibleArray); if (!isArray) return false; return !possibleArray.some((item) => typeof item !== "object"); };