JavaScript Arrays
Only getting the second value in an array¶
Conditional values in an array¶
2 arrays: check identical? (same order)¶
Sorting¶
mutates the existing array
- Alphabetically- arr.sort()
 
- numerically ascending- arr.sort((a, b) => a - b)
 
  
    
      Last update:
      2023-04-24