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