const result = [];
for (const k in obj) {
if (obj.hasOwnProperty(k)) {
result.push([ k, typeof obj[k] ]);
}
}
typeof
):const result = Object
.entries(obj)
.map(function(n) {
return [ n[0], this(n[1]) ];
}, x => x?.constructor.name ?? `${x}`);