I’ve tried to use the relatively new Array at method MDN in my front-end code and the app crashes in Safari and older browsers where it is not supported. Even though there is a polyfill for it (according to MDN) this doesn’t seem to be present in the ecmascript package that I’m using in my project, hence it is not working in Safari. Are there any plans to include this in the package or should I avoid using the Array at method for now?
I recently used the following and it works like a charm (core-js
npm
package):
import 'core-js/features/array/at';
1 Like
Awesome, works perfectly, thank you.