Created
February 5, 2017 11:00
-
-
Save cyrilletuzi/ac6f329859388edbf4114564bb1b9908 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 myOptions = [1, 2]; | |
function test(option1, option2) {} | |
test(...myOptions); | |
let defaultConfig = ['data1', 'data2']; | |
let userConfig = ['data3', 'data4']; | |
let finalConfig = [ | |
...defaultConfig, | |
...userConfig | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment