Last active
February 7, 2018 08:52
-
-
Save Jessidhia/75ee50278e099f7228976d3ed546e52f 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
import * as index './index.mjs' | |
export function calculate () { | |
return index.calculate() | |
} |
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
import * as b from './b.mjs' | |
console.log(b.calculate()) | |
let result | |
export function calculate () { | |
if (result !== undefined) { return result } | |
result = 42 | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment