0
Отфильтровать JSON
funcion sortAttribute(JSON, attr) { } Нужно используя ключ узнать является ли данный объект object или array
4 ответов
+ 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