JSFiddle - React, Tailwind, and code Playground

HTML

<div id="results"></div>

JavaScript

var results = document.getElementById("results");

var obj = {"larry": [6342672136.0, "omg", 1], "barry": [6261672136.0, "lol", 2]};
obj.somefunction1 = function(){};
obj.somefunction2 = function(){};
obj.somefunction3 = function(){};

Array(obj).length; // yay it comes out as having 2 keys 
// this is correct this method has been tested already 
// so no one can say this doesn't work it works in all 
// browsers and nodejs also Array() is the equivalent 
// of python's list() and when you do len(list(somedict))
// in python it tells you the ammount of keys that are in 
// that dict since it makes a list of only the keys hence 
// why Array(obj).length works because it makes an array 
// out of only the keys and .length equivalent of python's 
// len() counts the values in the array i will show you what 
// the array will look like
Array(obj); // ["larry", "barry"]
results.innerHTML += "<div>"+JSON.stringify(Array(obj))+"</div>";

Array(obj).length; // 2
results.innerHTML += "<div>"+JSON.stringify(Array(obj).length)+"</div>";

// and here's what the other looks like
Object.keys(obj); // ['larry', 'barry', 'somefunction1', 'somefunction2' , 'somefunction3'] 
results.innerHTML += "<div>"+JSON.stringify(Object.keys(obj))+"</div>";

Object.keys(obj).length; // 5
results.innerHTML += "<div>"+JSON.stringify(Object.keys(obj).length)+"</div>";