|
|
|
|
|
by spartanatreyu
1200 days ago
|
|
Not really. You can add a polyfill to check if `Array.at()` exists, and if it doesn't, create a function that does the same thing and add it to the `Array` object, so now all `Array.at()` code works as expected. Then once every environment you target supports `Array.at()` by default, you can remove the polyfill to reduce the size of your code. |
|