webchalk-animate - v0.31.0
    Preparing search index...

    Function getPartial

    • Returns either an object containing a subset of properties of the specified source object or the value of a singular property of the source object.

      Type Parameters

      • Source extends object
      • T extends (keyof Source)[] = (keyof Source)[]

      Parameters

      • source: Source

        The object whose properties should be targeted.

      • props: T | (keyof Source)[] | KeyOf<Source>

        A singular property name or an array of property names.

      Returns PickFromArray<Source, T> | Source[keyof Source]

      A singular value if props is a string or an object containing a subset of properties if props is an array of strings.