-
Notifications
You must be signed in to change notification settings - Fork 13
lastElement as an alias of lastItem #20
Comments
I don't think adding aliases is a good idea; we should pick one term. |
That also has less value by performance/compactness compared to just |
@dy not having to mention |
I believe the better solution is Maybe we should consider rework this proposal? |
I'm not convinced syntax is a better solution, or even a sensible one here. |
They are referred to as elements on MDN, but I'd defer to @ljharb & @hax to what The Standard tends to use out of the two. However, It's a small point given it's one letter, but I feel like since |
What about using
Array.prototype.lastElement()
as an alias ofArray.prototype.lastItem()
?The reason I suggest this is because usually when referring to the content of an Array, don't most coders say
element
instead ofitem
? (If they don't, forget I mentioned this 😝)The text was updated successfully, but these errors were encountered: