airbnb/javascript: JavaScript Style Guide

PHOTO EMBED

Thu Aug 19 2021 17:17:11 GMT+0000 (Coordinated Universal Time)

Saved by @MattMoniz #array

const arr = [1, 2, 3, 4];

// bad
const first = arr[0];
const second = arr[1];

// good
const [first, second] = arr;
content_copyCOPY

https://github.com/airbnb/javascript