- pickBy<T, O>(object, predicate): Record<number, Narrow<T, O>>
Parameters
- object: Nil | readonly T[]
- predicate: ValueNarrowingIteratee<T[], O>
Returns Record<number, Narrow<T, O>>
- pickBy<T>(object, predicate): Record<number, T>
Parameters
- object: Nil | readonly T[]
- predicate: ObjectIteratee<T, boolean>
Returns Record<number, T>
- pickBy<I, T, O>(object, predicate): Evaluate<IfCouldBe<I, Nil, {}> | {
[K in KeysWithMaybeIncludedValues<T, O>]?: Narrow<T[K], O>
} & {
[K in KeysWithDefinitelyIncludedValues<T, O>]: Narrow<T[K], O>
}> Parameters
- object: I
- predicate: ValueNarrowingIteratee<T, O>
Returns Evaluate<IfCouldBe<I, Nil, {}> | {
[K in KeysWithMaybeIncludedValues<T, O>]?: Narrow<T[K], O>
} & {
[K in KeysWithDefinitelyIncludedValues<T, O>]: Narrow<T[K], O>
}>
- pickBy<I, T, O>(object, predicate): Evaluate<IfCouldBe<I, Nil, {}> | {
[K in DefinitelyIncludedKeys<T, O>]: T[K]
} & {
[K in MaybeIncludedKeys<T, O>]?: T[K]
}> Parameters
- object: I
- predicate: KeyNarrowingIteratee<T, O>
Returns Evaluate<IfCouldBe<I, Nil, {}> | {
[K in DefinitelyIncludedKeys<T, O>]: T[K]
} & {
[K in MaybeIncludedKeys<T, O>]?: T[K]
}>
- pickBy<T>(object, predicate): Evaluate<PartialExceptIndexes<NonNullable<T>>>
Parameters
- object: T
- predicate: ObjectIteratee<T, boolean>
Returns Evaluate<PartialExceptIndexes<NonNullable<T>>>
Creates an object composed of the
object
propertiespredicate
returns truthy for.Differences from lodash:
Contribution to minified bundle size, when it is the only function imported: