Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const props = {foo: 1, bar: 2, qux: 3}
- const {foo, ...other} = props
- console.log(foo) // 1
- console.log(other) // {bar: 2, qux: 3}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement