Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isEachObjectAPrimitiveType(objects: any[]): boolean {
for (let i = 0; i < objects.length; i++) {
if (!isPrimitive(objects[i])) {
return false;
}
}
return true;
}
}