Last active
October 5, 2015 03:49
-
-
Save captDaylight/b7afd279db744a584243 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
let arrOne = [1, 2, 3]; | |
let arrTwo = [...arrOne, 4]; | |
console.log(arrOne, arrTwo); | |
// [1, 2, 3] [1, 2, 3, 4] | |
let arrThree = [-1, 0, ...arrTwo]; | |
console.log(arrThree); | |
// [-1, 0, 1, 2, 3, 4] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment