Created
December 27, 2020 23:03
-
-
Save reime005/91145c98706bd06cd5ea94bbfe00121e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const one = [1, 2]; | |
const two = [3, 4]; | |
console.log([...one, ...two]); // [ 1, 2, 3, 4 ] | |
console.log([...one, ...two, 5, 6]); // [ 1, 2, 3, 4, 5, 6 ] | |
console.log([...one] === one); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment