How do I empty an array in JavaScript using the most effective method?

You can also use splice() for in-place clearing:

let A = [1, 2, 3, 4];
A.splice(0, A.length);
console.log(A); // []

This saved me in a shared-state app where multiple components referenced the same array. Splice cleared it without breaking bindings.