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
Copy file name to clipboardExpand all lines: JavaScript-Quick-Reference.md
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,19 +377,16 @@ switch (expression) {
377
377
## 3.4 ARRAYS
378
378
Detailed guide on JavaScript Arrays, covering array manipulation methods, iteration, and array-specific operations.
379
379
380
-
### Global object: properties
380
+
### Properties
381
381
-`Array.length` Reflects the number of elements in an array.
382
382
-`Array.prototype` Represents the prototype for the Array constructor and allows to add new properties and methods to all Array objects.
383
383
384
-
### Global object: methods
384
+
### Methods
385
385
-`Array.from(arrayLike[, mapFn[, thisArg]])` Creates a new Array instance from an array-like or iterable object.
386
386
-`Array.isArray(obj)` Returns true if a variable is an array, if not false.
387
387
-`Array.of(element0[, element1[, ...[, elementN]]])` Creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.
388
388
389
-
### **Instance: properties
390
-
-`arr.length` Reflects the number of elements in an array.
391
-
392
-
### Instance: mutator methods
389
+
### Mutator Methods
393
390
-`arr.copyWithin(target, start, end)` Copies a sequence of array elements within the array.
394
391
-`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
392
-`arr.pop()` Removes the last element from an array and returns that element.
-`arr.toString()` Returns a string representing the array and its elements. Overrides the Object.prototype.toString() method.
413
410
-`arr.toLocaleString(locales, options)` Returns a localized string representing the array and its elements. Overrides the `Object.prototype.toLocaleString()` method.
414
411
415
-
### Instance: iteration methods
412
+
### Iteration Methods
416
413
-`arr.every(callback[, thisArg])` Returns true if every element in this array satisfies the provided testing function.
417
414
-`arr.filter(callback[, thisArg])` Creates a new array with all of the elements of this array for which the provided filtering function returns true.
418
415
-`arr.find(callback[, thisArg])` Returns the found value in the array, if an element in the array satisfies the provided testing function or undefined if not found.
0 commit comments