Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
ŠŃŃŠøŠ»ŃŃŃŠ¾Š²Š°ŃŃ JSON
funcion sortAttribute(JSON, attr) { } ŠŃŠ¶Š½Š¾ ŠøŃŠæŠ¾Š»ŃŠ·ŃŃ ŠŗŠ»ŃŃ ŃŠ·Š½Š°ŃŃ ŃŠ²Š»ŃŠµŃŃŃ Š»Šø Š“Š°Š½Š½ŃŠ¹ Š¾Š±ŃŠµŠŗŃ object ŠøŠ»Šø array
4 Respostas
+ 2
Check this one:
function checkArray(e) {
if(Array.isArray(e)) {
return "Array";
} else {
return "Object";
}
}
+ 2
Yuliia Movchan, is your problem solved? Any other questions?
+ 1
I can't understand your question, could you please give me more detalis?
+ 1
I need to write code wich will help me to understand type of received attribute is it object or array