get amount of keys in object js code example Example: js get number of keys in object Object.keys(obj).length