how to get the length of type script object code example Example: length of object in typescript Object.keys(customer).length