Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

manter alguns campos objetos javascript

const object = { a: 5, b: 6, c: 7  };
const subset = (({ a, c }) => ({ a, c }))(object);

console.log(subset); // { a: 5, c: 7 }
 
PREVIOUS NEXT
Tagged: #manter #alguns #campos #objetos #javascript
ADD COMMENT
Topic
Name
6+1 =