Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash delete object property

// Block list
// Remove the values you don't want
var result = _.omit(credentials, ['age']);

// Allow list
// Only allow certain values
var result = _.pick(credentials, ['fname', 'lname']);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lodash #delete #object #property
ADD COMMENT
Topic
Name
2+8 =