- pickBy<T, S>(
object: undefined | null | Dictionary<T>,
predicate?: ValueKeyIterateeTypeGuard<T, S>,
): Dictionary<S> Parameters
- object: undefined | null | Dictionary<T>
Optional
predicate: ValueKeyIterateeTypeGuard<T, S>
Returns Dictionary<S>
Returns the new object.
- pickBy<T, S>(
object: undefined | null | NumericDictionary<T>,
predicate: ValueKeyIterateeTypeGuard<T, S>,
): NumericDictionary<S> Parameters
- object: undefined | null | NumericDictionary<T>
- predicate: ValueKeyIterateeTypeGuard<T, S>
Returns NumericDictionary<S>
- pickBy<T>(
object: undefined | null | Dictionary<T>,
predicate?: ValueKeyIteratee<T>,
): Dictionary<T> Parameters
- object: undefined | null | Dictionary<T>
Optional
predicate: ValueKeyIteratee<T>
Returns Dictionary<T>
- pickBy<T>(
object: undefined | null | NumericDictionary<T>,
predicate?: ValueKeyIteratee<T>,
): NumericDictionary<T> Parameters
- object: undefined | null | NumericDictionary<T>
Optional
predicate: ValueKeyIteratee<T>
Returns NumericDictionary<T>
- pickBy<T extends object>(
object: undefined | null | T,
predicate?: ValueKeyIteratee<T[keyof T]>,
): Partial<T> Parameters
- object: undefined | null | T
Optional
predicate: ValueKeyIteratee<T[keyof T]>
Returns Partial<T>
Creates an object composed of the
object
propertiespredicate
returns truthy for. The predicate is invoked with two arguments: (value, key).