Axinom Mosaic Libraries
    Preparing search index...
    • Create a new object by picking only selected properties from an existing object

      Type Parameters

      • T extends Record<string, unknown>
      • U extends string | number | symbol

      Parameters

      • obj: T

        source object to pick properties from

      • ...propertyNames: U[]

        the property names to pick

      Returns Pick<T, U>