3 ms·
I think the idea here is that "foolike" is some kind of meaningful characteristic that happens to be testable by looking at a string prefix - not that the autho
by fenomas 7y ago
I think the idea here is that "foolike" is some kind of meaningful characteristic that happens to be testable by looking at a string prefix - not that the author is just making a helper to test string prefixes.
E.g.:
function isActiveCustomer(status) {
return status.startsWith("active")
}
is, I presume, the sort of thing the author means to suggest.