babel/doc/faq.md
Sebastian McKenzie 9e7de5ad2e add faq docs
2015-01-06 22:16:43 +11:00

766 B

layout title description permalink
docs FAQ Frequently asked questions and answers /docs/faq/

Why are there Array.from and Object.assign calls in my code?! These functions don't exist!

This is a known /docs/caveats. This is because 6to5 compiles to ES3 syntax but with ES5 and ES6 methods. I know, I know, this might not make much sense, but this is essential to emulate a complete ES6 environment so your code wont break!

You have two options, depending on your use-case: