Library API
    Preparing search index...

    Function reset

    • Resets an object by purging all its existing own properties and replacing them with the properties from another object.

      Type Parameters

      Parameters

      • orig: T

        The original object to reset

      • Optionalobj: T

        The object containing the new properties

      Returns T & {
          at?: any;
          concat?: any;
          copyWithin?: any;
          entries?: any;
          every?: any;
          fill?: any;
          filter?: any;
          find?: any;
          findIndex?: any;
          findLast?: any;
          findLastIndex?: any;
          flat?: any;
          flatMap?: any;
          forEach?: any;
          includes?: any;
          indexOf?: any;
          join?: any;
          keys?: any;
          lastIndexOf?: any;
          length?: any;
          map?: any;
          pop?: any;
          push?: any;
          reduce?: any;
          reduceRight?: any;
          reverse?: any;
          shift?: any;
          slice?: any;
          some?: any;
          sort?: any;
          splice?: any;
          toLocaleString?:
              | (() => string)
              | {
                  (): string;
                  (
                      locales: string | string[],
                      options?: NumberFormatOptions & DateTimeFormatOptions,
                  ): string;
              };
          toReversed?: any;
          toSorted?: any;
          toSpliced?: any;
          toString?: (() => string)
          | (() => string);
          unshift?: any;
          values?: any;
          with?: any;
          [key: number]: any;
      }

      The mutated original object reference

      • [key: number]: any
      • Optionalat?: any
      • Optionalconcat?: any
      • OptionalcopyWithin?: any
      • Optionalentries?: any
      • Optionalevery?: any
      • Optionalfill?: any
      • Optionalfilter?: any
      • Optionalfind?: any
      • OptionalfindIndex?: any
      • OptionalfindLast?: any
      • OptionalfindLastIndex?: any
      • Optionalflat?: any
      • OptionalflatMap?: any
      • OptionalforEach?: any
      • Optionalincludes?: any
      • OptionalindexOf?: any
      • Optionaljoin?: any
      • Optionalkeys?: any
      • OptionallastIndexOf?: any
      • Optionallength?: any

        Gets or sets the length of the array. This is a number one higher than the highest index in the array.

      • Optionalmap?: any
      • Optionalpop?: any
      • Optionalpush?: any
      • Optionalreduce?: any
      • OptionalreduceRight?: any
      • Optionalreverse?: any
      • Optionalshift?: any
      • Optionalslice?: any
      • Optionalsome?: any
      • Optionalsort?: any
      • Optionalsplice?: any
      • OptionaltoLocaleString?:
            | (() => string)
            | {
                (): string;
                (
                    locales: string | string[],
                    options?: NumberFormatOptions & DateTimeFormatOptions,
                ): string;
            }
      • OptionaltoReversed?: any
      • OptionaltoSorted?: any
      • OptionaltoSpliced?: any
      • OptionaltoString?: (() => string) | (() => string)
      • Optionalunshift?: any
      • Optionalvalues?: any
      • Optionalwith?: any
      reset(target, { newProp: 1 });