better faq answer
This commit is contained in:
parent
5f56da457c
commit
57ce1b201d
@ -7,7 +7,12 @@ permalink: /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!
|
||||
This is a known [caveat](/docs/caveats). This is because 6to5 compiles to ES3 syntax but with
|
||||
ES5 and ES6 methods. This is essential to emulate a complete ES6 environment so your code
|
||||
wont break! You see, ES6 features such as [iterators](/docs/tour#iterators) and
|
||||
[symbols](/docs/tour#symbols) require a lot of logic to work, and to accurately support these
|
||||
it would mean **a lot** of boilerplate smoshed into your codebase. This is the approach taken
|
||||
by other transpilers but 6to5 approaches it pretty differently.
|
||||
|
||||
You have two options, depending on your use-case:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user