Skip to content

Commit 4aadd9c

Browse files
author
YuChengKai
authored
Merge pull request InterviewMap#83 from honpery/master
Typo: FlapMap => FlatMap
2 parents 9fe87c0 + b40c652 commit 4aadd9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JS/JS-ch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ function test() {
13091309
// parseInt('3', 2) -> NaN
13101310
```
13111311
1312-
`FlapMap``map` 的作用几乎是相同的,但是对于多维数组来说,会将原数组降维。可以将 `FlapMap` 看成是 `map` + `flatten` ,目前该函数在浏览器中还不支持。
1312+
`FlatMap``map` 的作用几乎是相同的,但是对于多维数组来说,会将原数组降维。可以将 `FlatMap` 看成是 `map` + `flatten` ,目前该函数在浏览器中还不支持。
13131313
13141314
```js
13151315
[1, [2], 3].flatMap((v) => v + 1)

JS/JS-en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ The effect of `Map` is to generate a new array, iterate over the original array,
12031203
// parseInt('3', 2) -> NaN
12041204
```
12051205
1206-
The effect of `FlapMap` is almost the same with a `Map`, but the original array will be flatten for multidimensional arrays. You can think of `FlapMap` as a `map` and a `flatten`, which is currently not supported in browsers.
1206+
The effect of `FlatMap` is almost the same with a `Map`, but the original array will be flatten for multidimensional arrays. You can think of `FlatMap` as a `map` and a `flatten`, which is currently not supported in browsers.
12071207
12081208
```js
12091209
[1, [2], 3].flatMap((v) => v + 1)

0 commit comments

Comments
 (0)