Skip to content

Instantly share code, notes, and snippets.

@ng-the-engineer
Created May 30, 2021 17:12
Show Gist options
  • Save ng-the-engineer/40e890f24c62d95ed3ec5243191ad8e4 to your computer and use it in GitHub Desktop.
Save ng-the-engineer/40e890f24c62d95ed3ec5243191ad8e4 to your computer and use it in GitHub Desktop.
Code snippet of tutorial running tracker
const toggle = () => {
if (isStart === null) {
isStart = true;
startTracking();
} else {
isStart = !isStart;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment