Open ajhsu opened 7 years ago
const arr = ['foo', 'bar']; const copy = arr.slice(); console.log({ arr }); console.log({ copy }); /* Would dump an Object in details like: { arr: [ 'foo', 'bar' ] } { copy: [ 'foo', 'bar' ] } */