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
-`Array.from(arrayLike[, mapFn[, thisArg]])` Creates a new Array instance from an array-like or iterable object.
389
389
-`Array.isArray(obj)` Returns true if a variable is an array, if not false.
390
-
-`Array.of(element0[, element1[, ...[, elementN]]])` Creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.
390
+
-`Array.of("element1", "element2");` Creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.
391
391
392
392
### Mutator Methods
393
393
-`arr.copyWithin(target, start, end)` Copies a sequence of array elements within the array.
394
394
-`arr.fill(value, start, end)` Fills all the elements of an array from a start index to an end index with a static value.
395
395
-`arr.pop()` Removes the last element from an array and returns that element.
396
396
-`arr.flat()` Merges nested array into one single array.
397
-
-`arr.push([element1[, ...[, elementN]]])` Adds one or more elements to the end of an array and returns the new length of the array.
397
+
-`arr.push("element1", "element2");` Adds one or more elements to the end of an array and returns the new length of the array.
398
398
-`arr.reverse()` Reverses the order of the elements of an array in place — the first becomes the last, and the last becomes the first.
399
399
-`arr.shift()` Removes the first element from an array and returns that element.
400
400
-`arr.sort()` Sorts the elements of an array in place and returns the array.
401
-
-`array.splice(start, deleteCount, item1, item2, ...)` Adds and/or removes elements from an array.
402
-
-`arr.unshift([element1[, ...[, elementN]]])` Adds one or more elements to the front of an array and returns the new length of the array.
401
+
-`array.splice(start, deleteCount, item1, item2)` Adds and/or removes elements from an array.
402
+
-`arr.unShift("element1", "element2");` Adds one or more elements to the front of an array and returns the new length of the array.
403
403
404
404
### Acessor Methods
405
405
-`arr.at(index)` Returns the element at the specified index in the array.
406
-
-`arr.concat(value1[, value2[, ...[, valueN]]])` Returns a new array comprised of this array joined with other array(s) and/or value(s).
406
+
-`arr.concat(value1, value2, array2)` Returns a new array comprised of this array joined with other array(s) and/or value(s).
407
407
-`arr.includes(searchElement, fromIndex)` Determines whether an array contains a certain element, returning true or false as appropriate.
408
408
-`arr.indexOf(searchElement[, fromIndex])` Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.
409
409
-`arr.join(separator)` Joins all elements of an array into a string.
@@ -753,7 +753,7 @@ Methods for selecting, creating, and modifying DOM elements.
753
753
-`element.classList.toggle(className);` Toggles a class on the element.
754
754
-`element.style.property = "value";` Changes the style of an element.
755
755
756
-
### Examples of Common Style Properties and Attributes
756
+
### Examples of Common Style Properties & Attributes
757
757
-`element.style.color = "red";` Sets the text color of the element.
758
758
-`element.style.backgroundColor = "yellow";` Sets the background color of the element.
759
759
-`element.style.border = "1px solid black";` Sets a border for the element.
0 commit comments