Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

destructure object exlude one

const myObject = {  a: 1,  b: 2,  c: 3};const { a, ...noA } = myObject;console.log(noA); // => { b: 2, c: 3 }
Source by codeburst.io #
 
PREVIOUS NEXT
Tagged: #destructure #object #exlude
ADD COMMENT
Topic
Name
6+2 =