typescript get length of array of objects code example Example: length of object in typescript Object.keys(customer).length