Skip to content

Instantly share code, notes, and snippets.

@slightlytyler
Created July 11, 2016 21:11
Show Gist options
  • Save slightlytyler/0935f139e271c8f378d7efa71e70de9c to your computer and use it in GitHub Desktop.
Save slightlytyler/0935f139e271c8f378d7efa71e70de9c to your computer and use it in GitHub Desktop.
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