Skip to content

Instantly share code, notes, and snippets.

@linlymatsumura
Last active November 30, 2017 16:45
Show Gist options
  • Save linlymatsumura/db9d7b555c4ab4f293576fcbd3928b2f to your computer and use it in GitHub Desktop.
Save linlymatsumura/db9d7b555c4ab4f293576fcbd3928b2f to your computer and use it in GitHub Desktop.
最初だけ違うことをする関数
let foo = () => {
console.log('hello!')
foo = () => {
console.log('hi')
}
}
foo() // hello!
foo() // hi
foo() // hi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment