1 line of code: How to shallow clone an Array
const shallowClone = arr =&gt; arr.slice(0);         Enter fullscreen mode            Exit...
Tags: javascript, webdev, productivity, codequality