Skip to content

Instantly share code, notes, and snippets.

@shijiezhou1
Created March 8, 2022 06:18
Show Gist options
  • Save shijiezhou1/b43cb7a35ef2151bdfb8f3e6104611a4 to your computer and use it in GitHub Desktop.
Save shijiezhou1/b43cb7a35ef2151bdfb8f3e6104611a4 to your computer and use it in GitHub Desktop.
Reassign const value
Reassign const
const { type, title, description } = MAP[status];
({ type, description } = MAP[status]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment