Last active
February 7, 2017 14:38
-
-
Save xtuc/7e4406d6da1c3900c2cacaacbdb1db0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
type Args = { | |
a: number, | |
b: number, | |
c: number, | |
}; | |
function add({ a, b, c }: Args) { | |
return a + b + c; | |
} | |
const a = 1; | |
const b = 2; | |
const c = 3; | |
console.log( | |
add({ a, b, c }) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment