Skip to content

Instantly share code, notes, and snippets.

@Jessidhia
Last active February 7, 2018 08:52
Show Gist options
  • Save Jessidhia/75ee50278e099f7228976d3ed546e52f to your computer and use it in GitHub Desktop.
Save Jessidhia/75ee50278e099f7228976d3ed546e52f to your computer and use it in GitHub Desktop.
import * as index './index.mjs'
export function calculate () {
return index.calculate()
}
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