Module

x/lodash_es/src/object.js>pickBy

lodash for deno use
Latest
function pickBy
import { pickBy } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/object.js";

Creates an object composed of the object properties predicate returns truthy for. The predicate is invoked with two arguments: (value, key).

Examples

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

_.pickBy(object, _.isNumber); // => { 'a': 1, 'c': 3 }

Parameters

object

The source object.

predicate