GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — clone | @maxgraph/core

  • cloneUtils
  • clone

Function clone

  • clone(obj: any, transients?: string[] | null, shallow?: boolean): any

    Recursively clones the specified object ignoring all field names in the given array of transient fields. ObjectIdentity#FIELD_NAME is always ignored by this function.

    Parameters

    • obj: any

      Object to be cloned.

    • transients: string[] | null = null

      Optional array of strings representing the fieldname to be ignored.

    • shallow: boolean = false

      Optional boolean argument to specify if a shallow clone should be created, that is, one where all object references are not cloned or, in other words, one where only atomic (strings, numbers) values are cloned. Default is false.

    Returns any

    • Defined in util/cloneUtils.ts:32

Settings

Member Visibility
  • Protected
  • Inherited
Theme
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.