diff --git a/proposal.html b/proposal.html index dd9aa43..33c1547 100644 --- a/proposal.html +++ b/proposal.html @@ -1,5 +1,5 @@
-title: Array.prototype.flatMap & Array.prototype.flatten +title: Array.prototype.flatMap & Array.prototype.flat toc: false stage: 3 contributors: Michael Ficarra and Brian Terlson @@ -7,7 +7,7 @@@@ -24,9 +24,9 @@ Introduction
-`Array.prototype.flatten` returns a new array with all sub-array elements concatted into it recursively up to the specified depth.
+`Array.prototype.flat` returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.
`Array.prototype.flatMap` first maps each element using a mapping function, then flattens the result into a new array. It is identical to a map followed by a flatten of depth 1, but flatMap is quite often useful and merging both into one method is slightly more efficient.
Array.prototype.flatMap ( _mapperFunction_ [ , _thisArg_ ] )
1. Return _A_. -- Array.prototype.flatten( [ _depth_ ] )
-When the `flatten` method is called with zero or one arguments, the following steps are taken:
++ Array.prototype.flat( [ _depth_ ] )
+When the `flat` method is called with zero or one arguments, the following steps are taken:
1. Let _O_ be ? ToObject(*this* value). 1. Let _sourceLen_ be ? ToLength(? Get(_O_, `"length"`)).