@wopjs/cast - v0.1.12
    Preparing search index...

    Function toPlainObjectOf

    • 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.

      Type Parameters

      • T
      • U

      Parameters

      • x: T
      • f: (v: ExtractPlainObjectValue<T>) => v is U

      Returns Record<PropertyKey, U> | undefined