DEV Community

Discussion on: Will `.at()` be something useful?

meisekimiu profile image
Natalie Martin

I think it can be useful for functional programming. Since .at() is already a function it can be passed around where callbacks are expected, where as using standard [] needs to at least be wrapped into an arrow function. I think this usage would still be pretty rare though!

edo78 profile image
Federico "Edo" Granata Author

I didn't even think about that. It's a good example but still an edge case.