Skip to content

Instantly share code, notes, and snippets.

@johnpapa
Created November 14, 2019 15:34
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 johnpapa/58ff144cd8c7f477a8008e1c24651b0f to your computer and use it in GitHub Desktop.
Save johnpapa/58ff144cd8c7f477a8008e1c24651b0f to your computer and use it in GitHub Desktop.
Function expressin or declaration
// Function expression
const getThing1 = function(search: string) {
return getThingy(search);
};
// Function declaration
function getThing2(search: string) {
return getThingy(search);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment