• Copies a property at only if it matches the type.

    Type Parameters

    • From

    • FromKey extends string | number | symbol

    • ToKey extends string | number | symbol

    • To extends Partial<Record<ToKey, From[FromKey]>>

    Parameters

    • type: string

      Type expected to match typeof on the property.

    • from: From

      Source object.

    • to: To

      Destination object.

    • fromKey: FromKey

      Key of the property in source object.

    • toKey: ToKey

      Key of the property in destination object.

    Returns void

Generated using TypeDoc