const add = "add";
const edit = "edit"
const required = {user:[add, edit], profile:[edit]}
for(let p in required){
console.log(typeof(p))
}
Output:
string
string
this p type supposed to be an array but it shows string why?
const add = "add";
const edit = "edit"
const required = {user:[add, edit], profile:[edit]}
for(let p in required){
console.log(typeof(p))
}
Output:
string
string
this p type supposed to be an array but it shows string why?