Skip to content

Instantly share code, notes, and snippets.

@Shwartz
Created January 25, 2019 13:12
Show Gist options
  • Save Shwartz/b4e99c75aae66d14d3a5e4db9e353836 to your computer and use it in GitHub Desktop.
Save Shwartz/b4e99c75aae66d14d3a5e4db9e353836 to your computer and use it in GitHub Desktop.
export const simple = {
method: (param) => {
return `my param: ${param}`
}
};
export const shorter = {
method(param1) {
return `my param1: ${param1}`
}
};
//calling methods are the same:
simple.method('param for simple');
shorter.method('param for shorter');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment