Creates an object from x with keys k if f(x[k]) returns true. If x is not a plain object, or there's no passed props, returns undefined.
x
k
f(x[k])
true
undefined
Creates an object from
xwith keyskiff(x[k])returnstrue. Ifxis not a plain object, or there's no passed props, returnsundefined.