Stone.js API
    Preparing search index...
    • Keeps only the given keys of an object (ignoring keys that are absent).

      Type Parameters

      Parameters

      • object: T

        The source object.

      • keys: string[]

        The keys to keep.

      Returns Partial<T>

      A new object with only those keys.