const e=(e,t=`Array`,n,r,i=0,a=void 0)=>{let o=[];if(!Array.isArray(e))o.push(`${t} must be an array.`);else if(i&&e.length<i)o.push(`${t} must be at least ${i} items long.`);else if(a&&e.length>a)o.push(`${t} must be at most ${a} items long.`);else if(n)e.every(e=>typeof e===n)||o.push(`${t} must contain only ${n} elements.`);else if(r){let n=e.every(r);Array.isArray(n)?n.length>0||o.push(...n):n||o.push(`${t} must contain valid elements.`)}return o};export{e as validateArray};
//# sourceMappingURL=validateArray.mjs.map