Skip to content

Instantly share code, notes, and snippets.

@abiriadev
Created July 6, 2021 10:58
Show Gist options
  • Save abiriadev/e4cdd36041be62ee1eb3f56d761d84cc to your computer and use it in GitHub Desktop.
Save abiriadev/e4cdd36041be62ee1eb3f56d761d84cc to your computer and use it in GitHub Desktop.
increaseID.ts
export default (() => {
let id = 0
return () => ++id
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment