@vsokolov/utils - v0.32.0
    Preparing search index...

    Function pick

    • Pick specific keys from object

      Type Parameters

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

      Parameters

      • obj: T

        Object from which to pick keys

      • ...props: K[]

        Keys to select from object

      Returns { [P in string | number | symbol]: T[P] }

      Object with selected keys