Create a new object by merging the passed arguments, this is effectively the same as calling objExtend({}, ...theArgs) where all of the arguments are added to a new object that is returned.

The original object to be extended.

The optional number of arguments to be copied

  • A new object or the original
  • Create a new object by merging the passed arguments, this is effectively the same as calling objExtend({}, ...theArgs) where all of the arguments are added to a new object that is returned.

    Type Parameters

    • T

    Parameters

    • target: T

      The original object to be extended.

    • Rest...theArgs: any

      The optional number of arguments to be copied

    Returns T & any

    • A new object or the original