Skip to content

Commit bfa9d11

Browse files
authored
Merge pull request #196 from javascript-tutorial/sync-29216730
Sync with upstream @ 2921673
2 parents c9aa11d + 3639358 commit bfa9d11

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

1-js/02-first-steps/08-operators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ alert( +apples + +oranges ); // 5
205205
| 2 | مقداردهی | `=` |
206206
| ... | ... | ... |
207207

208-
همانطور که می‌بینیم «عملگر + یگانه» اولویت `15` دارد که از عملگر جمع ( + دوگانه) با اولویت `13` بالاتر است. به همین دلیل است که در عبارت `"+apples + +oranges"` عملگرهای + یگانه پیش از علامت جمع اجرا می‌شوند.
208+
همانطور که می‌بینیم «عملگر + یگانه» اولویت `15` دارد که از عملگر جمع ( + دوگانه) با اولویت `12` بالاتر است. به همین دلیل است که در عبارت `"+apples + +oranges"` عملگرهای + یگانه پیش از علامت جمع اجرا می‌شوند.
209209

210210
## مقداردهی
211211

1-js/11-async/05-promise-api/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ That's what `Promise.all` is for.
1313
The syntax is:
1414

1515
```js
16-
let promise = Promise.all([...promises...]);
16+
let promise = Promise.all(iterable);
1717
```
1818

19-
`Promise.all` takes an array of promises (it technically can be any iterable, but is usually an array) and returns a new promise.
19+
`Promise.all` takes an iterable (usually, an array of promises) and returns a new promise.
2020

2121
The new promise resolves when all listed promises are resolved, and the array of their results becomes its result.
2222

4-binary/03-blob/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ blob.arrayBuffer().then(buffer => /* process the ArrayBuffer */);
223223

224224
## From Blob to stream
225225

226-
When we read and write to a blob of more than `2G`, the use of `arrayBuffer` becomes more memory intensive for us. At this point, we can directly convert the blob to a stream.
226+
When we read and write to a blob of more than `2 GB`, the use of `arrayBuffer` becomes more memory intensive for us. At this point, we can directly convert the blob to a stream.
227227

228228
A stream is a special object that allows to read from it (or write into it) portion by portion. It's outside of our scope here, but here's an example, and you can read more at <https://developer.mozilla.org/en-US/docs/Web/API/Streams_API>. Streams are convenient for data that is suitable for processing piece-by-piece.
229229

0 commit comments

Comments
 (0)