const Baby = {
name: 'Tabby',
favColor: 'brown',
Age: 21
};
const {name, ...rest } = Baby;
console.log(name); // 'Tabby'
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
const Baby = {
name: 'Tabby',
favColor: 'brown',
Age: 21
};
const {name, ...rest } = Baby;
console.log(name); // 'Tabby'
For further actions, you may consider blocking this person and/or reporting abuse
Abdullah Numan -
sharath mohan -
Jayesh -
Chakit -
Once suspended, tabithakavyu will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, tabithakavyu will be able to comment and publish posts again.
Once unpublished, all posts by tabithakavyu will become hidden and only accessible to themselves.
If tabithakavyu is not suspended, they can still re-publish their posts from their dashboard.
Discussion (1)
Using the rest operator ..., you can store all remaining properties from the original object to a variable.