Skip to content

Commit a50e82e

Browse files
committed
merging all conflicts
2 parents 00869ef + ea7738b commit a50e82e

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

1-js/02-first-steps/10-ifelse/article.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ if (cond) {
6868

6969
## عبارت "else"
7070

71+
<<<<<<< HEAD
7172
دستور `if` ممکن است یک بلوک اختیاری "else" هم شامل شود. این بلوک زمانی که شرط falsy باشد اجرا می‌شود.
73+
=======
74+
The `if` statement may contain an optional `else` block. It executes when the condition is falsy.
75+
>>>>>>> ea7738bb7c3616bb51ff14ae3db2a2747d7888ff
7276
7377
برای مثال:
7478
```js run

1-js/05-data-types/05-array-methods/article.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ alert( arr.includes(1) ); // true
255255

256256
توجه داشته باشید که متدها از مقایسه `===` استفاده می‌کنند. پس اگر ما به دنبال `false` باشیم، متد دقیقا `false` را پیدا می‌کند و نه صفر را.
257257

258+
<<<<<<< HEAD
258259
اگر ما بخواهیم بررسی کنیم که `item` درون آرایه وجود دارد یا نه و به دنبال ایندکس دقیق نیستیم، پس `arr.includes` ترجیح داده می‌شود.
260+
=======
261+
If we want to check if `item` exists in the array, and don't need the index, then `arr.includes` is preferred.
262+
>>>>>>> ea7738bb7c3616bb51ff14ae3db2a2747d7888ff
259263
260264
متد [arr.lastIndexOf](mdn:js/Array/lastIndexOf) مانند `indexOf` است اما از راست به چپ جستجو می‌کند.
261265

@@ -337,10 +341,16 @@ alert(users.findIndex(user => user.name == 'John')); // 0
337341
alert(users.findLastIndex(user => user.name == 'John')); // 3
338342
```
339343

344+
<<<<<<< HEAD
340345

341346
### متد filter
342347

343348
متد `find` برای یک (اولین) المان که باعث شود تابع `true` برگرداند، جستجو می‌کند.
349+
=======
350+
### filter
351+
352+
The `find` method looks for a single (first) element that makes the function return `true`.
353+
>>>>>>> ea7738bb7c3616bb51ff14ae3db2a2747d7888ff
344354

345355
اگر ممکن باشد تعداد بیشتری موجود باشند، می‌توانیم از [arr.filter(fn)](mdn:js/Array/filter) استفاده کنیم.
346356

5-network/10-long-polling/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Long polling
22

3-
Long polling is the simplest way of having persistent connection with server, that doesn't use any specific protocol like WebSocket or Server Side Events.
3+
Long polling is the simplest way of having persistent connection with server, that doesn't use any specific protocol like WebSocket or Server Sent Events.
44

55
Being very easy to implement, it's also good enough in a lot of cases.
66

0 commit comments

Comments
 (0)