Skip to main content
Module

x/lodash_es/mod.ts>omitBy

lodash for deno use
Latest
function omitBy
import { omitBy } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

The opposite of _.pickBy; this method creates an object composed of the own and inherited enumerable string keyed properties of object that predicate doesn't return truthy for. The predicate is invoked with two arguments: (value, key).

Examples

var object = { 'a': 1, 'b': '2', 'c': 3 };

_.omitBy(object, _.isNumber); // => { 'b': '2' }

Parameters

object

The source object.

predicate