Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Created February 5, 2017 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyrilletuzi/f0cf2a503a604c5a08b2b7c164fdaf4b to your computer and use it in GitHub Desktop.
Save cyrilletuzi/f0cf2a503a604c5a08b2b7c164fdaf4b to your computer and use it in GitHub Desktop.
let myOptions: int[] = [1, 2];
function test(option1: int, option2: int): void {}
test(...myOptions);
let defaultConfig: string[] = ['data1', 'data2'];
let userConfig: string[] = ['data3', 'data4'];
let finalConfig: string[] = [
...defaultConfig,
...userConfig
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment