I have come to realize that there is no definitive best practice for copying an Array in Javascript.
Is it a viable option to utilize Array.filter to copy an Array?
For example:
var words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
const result = words.filter(word => word);
Since filter generates a new Array, could this be a suitable method? Are there any drawbacks to using this approach?