Created
June 22, 2016 05:04
-
-
Save maxehnert/542d6117751f2736c3408b73ab855b17 to your computer and use it in GitHub Desktop.
es6 cyclic dependency subtract.js
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 { countAddPre, add } from './add'; | |
export var countSubtract = 0; | |
export function subtractfn(n = 0) { | |
countSubtract++; | |
console.log('countSubtract', countSubtract); | |
if (n < 20) return add(n + 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment