• Extend the target object by merging the passed arguments into it

    Type Parameters

    • T

    Parameters

    • target: T

      The object to be extended or overwritten

    • Rest ...theArgs: any

      The optional number of arguments to be copied

    Returns T & any

    • A new object or the original