Skip to content

Instantly share code, notes, and snippets.

View nehrakln07's full-sized avatar

kamlesh nehra nehrakln07

View GitHub Profile
const isArrayFlattened = function(array) {
if (!array) {
return true;
}
for (const item of array) {
if (item instanceof Array) {
return false;
}
}
return true;