Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript extrsct object

const pick = (...props) => o => props.reduce((a, e) => ({ ...a, [e]: o[e] }), {});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #extrsct #object
ADD COMMENT
Topic
Name
1+1 =