Function returns the type of object
function objOrLis(obj) {
if (typeof obj == "object") {
poss = "object"
try {
for (let i of obj) {
poss = "list"
}
}
catch {
poss = "object"
}
return poss
}
else {
let c = typeof obj
return c
}
}