_.omitTypes

Returns one or more objects omitting the values ​​of defined types

_.omitTypes(types, objects)

Parameters:

  • types [string or array of strings]: the types to be omitted

  • objects [object or array of objects]: the objects that will have their values ​​omitted

Example:

_.omitTypes('number', {name: 'drezzy', age: 17, birthday: 11})
// => { name: 'drezzy'}  

Last updated