#Arrays

[ follow ]
#javascript
fromAllthingssmitty
5 days ago
JavaScript

Finally, safe array methods in JavaScript - Matt Smith

ES2023 added non-mutating array methods (toSorted, toReversed, toSpliced) that return new shallow copies, preventing in-place mutations and aiding immutability in stateful apps.
fromAllthingssmitty
3 months ago
Node JS

How JavaScript's at() method makes array indexing easier - Matt Smith

The at() method simplifies accessing array elements, particularly from the end, enhancing code readability and reducing errors.
JavaScript
from2ality
3 weeks ago

Learning web development: Booleans, comparisons and `if` statements

Use booleans, comparisons, and if statements to execute code conditionally and understand primitives versus objects, including storage and identity differences.
Java
fromMedium
4 months ago

Oddities of Java: Arrays are objects, kind of, but also primitives

Integer variables in Java are primitives, while integer arrays are objects with additional functionalities.
The toString() method does not provide a useful output for arrays in Java.
[ Load more ]