Created
January 25, 2019 13:12
-
-
Save Shwartz/b4e99c75aae66d14d3a5e4db9e353836 to your computer and use it in GitHub Desktop.
This file contains 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
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