Skip to content

Instantly share code, notes, and snippets.

View gist:3ae29103392aa4c2dc8863975260ab06
const isArrayFlattened = function(array) {
if (!array) {
return true;
}
for (const item of array) {
if (item instanceof Array) {
return false;
}
}
return true;