Skip to main content
Module

x/lodash_es/mod.ts>pickBy

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

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