Created
July 11, 2016 21:11
-
-
Save slightlytyler/0935f139e271c8f378d7efa71e70de9c 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
let MAX = 10; | |
let COUNTER = 0; | |
export const increment = count => { count += 1 }; | |
const myObject = { | |
myFn: () => { | |
increment(COUNTER); | |
if(condition) helpers.fn(); | |
}, | |
}; | |
export const helpers = { | |
fn: () => { | |
console.log(COUNTER); | |
return !(MAX === COUNTER); | |
}; | |
} | |
export default myObject; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment