get number of entries of object javascript code example Example: javascript get number of elements in object Object.keys(obj).length