Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const $x = Symbol();
const t = { $x: 4, y: 5, z: 6 };
const { [$x], ...collect } = t; // collect = { y: 5, z: 6 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment