Skip to content

Commit 4cca6f0

Browse files
committed
sort the order of methods alphabetically
1 parent ca42892 commit 4cca6f0

File tree

5 files changed

+48
-45
lines changed

5 files changed

+48
-45
lines changed

en/arrays/README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,31 @@ Arrays are a special type of object. One can have [objects](../objects/) in an
4646

4747
| Name | Description |
4848
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
49-
| `concat()` | Returns two or more combined arrays |
50-
| `join()` | Joins all elements in an array into a string |
51-
| `push()` | Adds one or more elements at the end of the array and returns the length |
52-
| `pop()` | Removes the last element of an array and returns that element |
53-
| `shift()` | Removes the first element of an array and returns that element |
54-
| `unshift()` | Adds one or more elements at the front of an array and returns the length |
55-
| `slice()` | Extracts the section of an array and returns the new array |
5649
| `at()` | Returns element at the specified index or `undefined` |
57-
| `splice()` | Removes elements from an array and (optionally) replaces them, and returns the array |
58-
| `reverse()` | Transposes the elements of an array and returns a reference to an array |
59-
| `flat()` | Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth |
60-
| `sort()` | Sorts the elements of an array in place, and returns a reference to the array |
61-
| `indexOf()` | Returns the index of the first match of the search element |
62-
| `lastIndexOf()` | Returns the index of the last match of the search element |
63-
| `forEach()` | Executes a callback in each element of an array and returns undefined |
64-
| `map()` | Returns a new array with a return value from executing `callback` on every array item. |
65-
| `flatMap()` | Runs `map()` followed by `flat()` of depth 1 |
50+
| `concat()` | Returns two or more combined arrays |
51+
| `every()` | Returns `true` if `callback` returns `true` for every item in the array |
6652
| `filter()` | Returns a new array containing the items for which `callback` returned `true` |
6753
| `find()` | Returns the first item for which `callback` returned `true` |
68-
| `findLast()` | Returns the last item for which `callback` returned `true` |
6954
| `findIndex()` | Returns the index of the first item for which `callback` returned `true` |
55+
| `findLast()` | Returns the last item for which `callback` returned `true` |
7056
| `findLastIndex()` | Returns the index of the last item for which `callback` returned `true` |
71-
| `every()` | Returns `true` if `callback` returns `true` for every item in the array |
72-
| `some()` | Returns `true` if `callback` returns `true` for at least one item in the array |
57+
| `flat()` | Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth |
58+
| `flatMap()` | Runs `map()` followed by `flat()` of depth 1 |
59+
| `forEach()` | Executes a callback in each element of an array and returns undefined |
60+
| `indexOf()` | Returns the index of the first match of the search element |
61+
| `join()` | Joins all elements in an array into a string |
62+
| `lastIndexOf()` | Returns the index of the last match of the search element |
63+
| `map()` | Returns a new array with a return value from executing `callback` on every array item. |
64+
| `pop()` | Removes the last element of an array and returns that element |
65+
| `push()` | Adds one or more elements at the end of the array and returns the length |
7366
| `reduce()` | Uses `callback(accumulator, currentValue, currentIndex, array)` for reducing purpose and returns the final value returned by `callback` function |
74-
| `reduceRight()` | Works similarly lie `reduce()` but starts with the last element |
67+
| `reduceRight()` | Works similarly like `reduce()` but starts with the last element |
68+
| `reverse()` | Transposes the elements of an array and returns a reference to an array |
69+
| `shift()` | Removes the first element of an array and returns that element |
70+
| `slice()` | Extracts the section of an array and returns the new array |
71+
| `some()` | Returns `true` if `callback` returns `true` for at least one item in the array |
72+
| `sort()` | Sorts the elements of an array in place, and returns a reference to the array |
73+
| `splice()` | Removes elements from an array and (optionally) replaces them, and returns the array |
74+
| `unshift()` | Adds one or more elements at the front of an array and returns the length |
75+
7576

en/browser-object-model-bom/screen.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@ screen
1515

1616
The `window.screen` object has different properties, some of them are listed here:
1717

18-
| Property | Description |
19-
| :--- | :--- |
20-
| `height` | Represents the pixel height of the screen. |
21-
| `left` | Represents the pixel distance of the current screen’s left side. |
22-
| `pixelDepth` | A read-only property that returns the bit depth of the screen. |
23-
| `top` | Represents the pixel distance of the current screen’s top. |
24-
| `width` | Represents the pixel width of the screen. |
25-
| `orientation` | Returns the screen orientation as specified in the Screen Orientation API |
26-
| `availTop` | A read-only property that returns the first pixel from the top that is not taken up by system elements. |
27-
| `availWidth` | A read-only property that returns the pixel width of the screen excluding system elements. |
28-
| `colorDepth` | A read-only property that returns the number of bits used to represent colors. |
18+
| Property | Description |
19+
| -------------- | --------------------------------------------------------------------------------- |
20+
| `availTop` | A read-only property that returns the first pixel from the top that is not taken up by system elements. |
21+
| `availWidth` | A read-only property that returns the pixel width of the screen excluding system elements. |
22+
| `colorDepth` | A read-only property that returns the number of bits used to represent colors. |
23+
| `height` | Represents the pixel height of the screen. |
24+
| `left` | Represents the pixel distance of the current screen’s left side. |
25+
| `orientation` | Returns the screen orientation as specified in the Screen Orientation API. |
26+
| `pixelDepth` | A read-only property that returns the bit depth of the screen. |
27+
| `top` | Represents the pixel distance of the current screen’s top. |
28+
| `width` | Represents the pixel width of the screen. |
29+
2930

3031

3132

en/events.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ Some of the common HTML events are mentioned here.
3333

3434
| Event | Description |
3535
| ------------- | --------------------------------------------------------- |
36-
| `onchange` | When the user changes or modifies the value of form input |
3736
| `onclick` | When the user clicks on the element |
38-
| `onmouseover` | When cursor of the mouse comes over the element |
39-
| `onmouseout` | When cursor of the mouse comes leaves the element |
37+
| `onchange` | When the user changes or modifies the value of form input |
4038
| `onkeydown` | When the user press and then releases the key |
41-
| `onload` | When the browser has finished the loading |
39+
| `onload` | When the browser has finished the loading |
40+
| `onmouseout` | When cursor of the mouse leaves the element |
41+
| `onmouseover` | When cursor of the mouse comes over the element |
42+
4243

4344
It is common for handlers registered on nodes with children to also receive events from the children. For example, if a button inside a paragraph is clicked, handlers registered on the paragraph will also receive the click event. In case of the presence of handlers in both, the one at the bottom gets to go first. The event is said to _propagate_ outward, from the initiating node to its parent node and on the root of the document.
4445

en/miscellaneous/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ pageNumber: 112
99

1010
In this chapter we will be discussing various topics that will come across through while writing code. The topics are listed below:
1111

12-
* [Template Literals](./template-literals.md)
13-
* [Hoisting](./hoisting.md)
12+
* [API and AJAX](./api-ajax.md)
13+
* [Building and Deploying JS application](./building-and-deploying.md)
14+
* [Callback](./callback.md)
1415
* [Currying](./currying.md)
15-
* [Polyfills and Transpilers](./polyfills-and-transpilers.md)
16-
* [Linked List](./linked-list.md)
17-
* [Global Footprint](./global-footprint.md)
1816
* [Debugging](./debugging.md)
19-
* [Callback](./callback.md)
20-
* [Web API and AJAX](./api-ajax.md)
21-
* [Single Thread Nature](./single-thread-nature.md)
2217
* [ECMA Script](./ECMA-script.md)
23-
* [Building and Deploying JS application](./building-and-deploying.md)
18+
* [Global Footprint](./global-footprint.md)
19+
* [Hoisting](./hoisting.md)
20+
* [Linked List](./linked-list.md)
21+
* [Polyfills and Transpilers](./polyfills-and-transpilers.md)
22+
* [Single Thread Nature](./single-thread-nature.md)
23+
* [Template Literals](./template-literals.md)
2424
* [Testing](./testing.md)

en/regular-expression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ Properties and methods supported by RegEx are listed below.
199199
| Name | Description |
200200
| ------------- | ---------------------------------------------------------------------------------- |
201201
| `constructor` | Returns function that created RegExp object's protype |
202+
| `exec()` | Test for the match and returns the first match, if no match then it returns `null` |
202203
| `global` | Checks if the `g` modifier is set |
203204
| `ignoreCase` | Checks if the `i` modifier is set |
204205
| `lastIndex` | Specifies the index at which to start the next match |
205206
| `multiline` | Checks if the m modifier is set |
206207
| `source` | Returns the text of the string |
207-
| `exec()` | Test for the match and returns the first match, if no match then it returns `null` |
208208
| `test()` | Test for the match and returns the `true` or `false` |
209209
| `toString()` | Returns the string value of the regular exression |
210210

0 commit comments

Comments
 (0)