Function copyProps

  • Copy properties from source to dest. Similar to Object.assign, but only copies properties that exist in source, dest and propList.

    Type Parameters

    Parameters

    • source: Record<keyof T, any>

      source object

    • dest: T

      destination object

    • propList: (keyof T)[]

      list of properties to copy

    Returns T