Method - 01 (Old Way)
let newArray = arrayToBeCopied.slice(0)
Method - 02 (JS E6 Way)
let newArray = [...arrayToBeCopied]
Method - 01 (Old Way)
let newArray = arrayToBeCopied.slice(0)
Method - 02 (JS E6 Way)
let newArray = [...arrayToBeCopied]