Given:
let item = {
id: xxx,
name: yyy
};
console.log(typeof item.id, item.id, Object.keys(item.id).length)
I get:
object, null, TypeError: Cannot convert undefined or null to object
I'm confused. How can I determinte the correct type?
thanks