Try `service.identity.apply(id => id &&...
# typescript
t
Try
service.identity.apply(id => id && id.principalId);
👌 1