this post was submitted on 13 Nov 2023
13 points (88.2% liked)
JavaScript
2460 readers
8 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
In your example, without the comment, I'd have no way of knowing it was a customer ID I'm getting, unless the only objects with IDs are customers.
I mean, the example kinda implies that this is on a
Customer
type. Otherwise you'd have a methodgetCustomerId
instead.