1 Commits

Author SHA1 Message Date
Kent C. Dodds
e88f4ba7af SETUP FOR TYPESCRIPT 2019-11-12 17:36:47 -07:00

14
src/typescript-example.js Normal file
View File

@@ -0,0 +1,14 @@
function add(a, b) {
return a + b
}
function getFullName(user) {
const {
name: {first, middle, last},
} = user
return [first, middle, last].filter(Boolean).join('')
}
add(1, 'two')
getFullName({name: {first: 'Joe', midd1e: 'Bud', last: 'Matthews'}})