You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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 |
56
49
|`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 |
66
52
|`filter()`| Returns a new array containing the items for which `callback` returned `true`|
67
53
|`find()`| Returns the first item for which `callback` returned `true`|
68
-
|`findLast()`| Returns the last item for which `callback` returned `true`|
69
54
|`findIndex()`| Returns the index of the first item for which `callback` returned `true`|
55
+
|`findLast()`| Returns the last item for which `callback` returned `true`|
70
56
|`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 |
73
66
|`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 |
|`onchange`| When the user changes or modifies the value of form input |
37
36
|`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 |
40
38
|`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
+
42
43
43
44
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.
0 commit comments