Use the literal syntax for array creation. Avoid array constructor.
Use Array.push() instead of direct assignment to add items to an array.
Use array spreads [...] operator to copy arrays.
To convert an array-like object to an array, use spreads [...] operator instead of Array.from.
Use Array.from instead of spread [...] operator for mapping over iterables, because it avoids creating an intermediate array.