Compare two arrays regardless of the order

PHOTO EMBED

Mon Aug 03 2020 06:46:19 GMT+0000 (Coordinated Universal Time)

Saved by @wireshark #javascript

// `a` and `b` are arrays
const isEqual = (a, b) => JSON.stringify(a.sort()) === JSON.stringify(b.sort());
content_copyCOPY

Office code