colinmeinke / wilderness

An SVG animation API
https://wilderness.now.sh
MIT License
154 stars 8 forks source link

Polyfill Array.from #52

Closed colinmeinke closed 7 years ago

colinmeinke commented 7 years ago

Because of https://babeljs.io/docs/usage/caveats

Using https://github.com/zloirock/core-js

colinmeinke commented 7 years ago

This should just be a warning like https://github.com/serieseight/tinyscroll#browser-support.

dalisoft commented 7 years ago

Hi @colinmeinke. I offer some way, maybe you like it.

I am just made polyfill. You can use ES6 import for it as well.

Here link Here how i used it

If you see wrong syntax or something, please let me know.

As its my first ES6 work. Inspired from you.

With shim for my app made it work back to IE9, Android 4, iOS7 as its nice result for ES6 syntax (forever cared about browser when ES6 trying, but i seen its good)

Thanks.