check object length in typescript code example Example: length of object in typescript Object.keys(customer).length