Skip to content

tiny translation update #587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 20, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify from 'changes requested'
  • Loading branch information
yyxygit committed Jan 19, 2020
commit d4c70f815a6b4b6b9ad018dbf6e7aa50ec00f374
2 changes: 1 addition & 1 deletion 1-js/05-data-types/03-string/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ alert( str );

因此浏览器需要知道要比较的语言。

幸运地是,所有现代浏览器(IE-10 需要额外的库 [Intl.JS](https://github.com/andyearnshaw/Intl.js/)) 支持国际化标准 [ECMA 402](http://www.ecma-international.org/ecma-402/1.0/ECMA-402.pdf)。
幸运地是,所有现代浏览器(IE10- 需要额外的库 [Intl.JS](https://github.com/andyearnshaw/Intl.js/)) 支持国际化标准 [ECMA 402](http://www.ecma-international.org/ecma-402/1.0/ECMA-402.pdf)。

它提供了一种特殊的方法来比较不同语言的字符串,遵循它们的规则。

Expand Down
4 changes: 2 additions & 2 deletions 1-js/05-data-types/05-array-methods/12-reduce-object/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ importance: 4

# 从数组创建键(值)对象

假设我们有以下形式的用户对象数组 `{id:..., name:..., age... }`
假设我们有以下形式的用户数组 `{id:..., name:..., age... }`。

创建一个函数 `groupById(arr)` 从数组创建对象,以 `id` 为key,数组项为value
创建一个函数 `groupById(arr)` 从该数组创建对象,以 `id` 为键(key),数组项为值

例如:

Expand Down
2 changes: 1 addition & 1 deletion 1-js/05-data-types/05-array-methods/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ alert(youngerUsers.length); // 2

- [arr.fill(value, start, end)](mdn:js/Array/fill) — 从 `start` 到 `end` 用 `value` 重复填充数组。

- [arr.copyWithin(target, start, end)](mdn:js/Array/copyWithin) — 将 `开始` 位置到 `结束` 位置 [译注:不包含结束位元素] 元素复制到 *自身* `目标` 位置中(覆盖现有元素)。
- [arr.copyWithin(target, start, end)](mdn:js/Array/copyWithin) — 将从 `start`(开始)位置到 `end`(结束)位置 [译注:不包含结束位元素] 的所有元素复制到 *自身* 的 `target`(目标)位置中(覆盖现有元素)。

有关完整列表,请参阅[手册](mdn:js/Array)。

Expand Down