Namespace: object

lib. object

Object module.

Author:
  • Taka Okunishi
Source:

Methods

<static> copy(src, dest) → {object}

Copy a object.

Parameters:
Name Type Description
src object

Object to copy from.

dest object

Object to copy to.

Author:
  • Taka Okunishi
Source:
Returns:
  • Copied object.
Type
object

<static> deepCopy(src, dest) → {object}

Copy a object deeply.

Parameters:
Name Type Description
src object

Object to copy from.

dest object

Object to copy to.

Author:
  • Taka Okunishi
Source:
Returns:
  • Copied object.
Type
object

<static> define(def)

Define a constructor.

Parameters:
Name Type Description
def object

Constructor definition.

Properties
Name Type Description
init function

Initializer of function.

properties object

Properties for prototype.

accessor string[]

Generate attr accessor methods.

Author:
  • Taka Okunishi
Source:

<static> fallbackCopy(src, dest) → {object}

Copy properties only if not exists in destination.

Parameters:
Name Type Description
src object

Source object.

dest object

Destination object.

Source:
Returns:
  • Destination object.
Type
object

Namespace: object

lib. object

Object module.

Author:
  • Taka Okunishi
Source:

Methods

<static> copy(src, dest) → {object}

Copy a object.

Parameters:
Name Type Description
src object

Object to copy from.

dest object

Object to copy to.

Author:
  • Taka Okunishi
Source:
Returns:
  • Copied object.
Type
object

<static> deepCopy(src, dest) → {object}

Copy a object deeply.

Parameters:
Name Type Description
src object

Object to copy from.

dest object

Object to copy to.

Author:
  • Taka Okunishi
Source:
Returns:
  • Copied object.
Type
object

<static> define(def)

Define a constructor.

Parameters:
Name Type Description
def object

Constructor definition.

Properties
Name Type Description
init function

Initializer of function.

properties object

Properties for prototype.

accessor string[]

Generate attr accessor methods.

Author:
  • Taka Okunishi
Source:

<static> fallbackCopy(src, dest) → {object}

Copy properties only if not exists in destination.

Parameters:
Name Type Description
src object

Source object.

dest object

Destination object.

Source:
Returns:
  • Destination object.
Type
object

Namespace: object

lib. object

Object module.

Author:
  • Taka Okunishi
Source:

Methods

<static> copy(src, dest) → {object}

Copy a object.

Parameters:
Name Type Description
src object

Object to copy from.

dest object

Object to copy to.

Author:
  • Taka Okunishi
Source:
Returns:
  • Copied object.
Type
object

<static> deepCopy(src, dest) → {object}

Copy a object deeply.

Parameters:
Name Type Description
src object

Object to copy from.

dest object

Object to copy to.

Author:
  • Taka Okunishi
Source:
Returns:
  • Copied object.
Type
object

<static> define(def)

Define a constructor.

Parameters:
Name Type Description
def object

Constructor definition.

Properties
Name Type Description
init function

Initializer of function.

properties object

Properties for prototype.

accessor string[]

Generate attr accessor methods.

Author:
  • Taka Okunishi
Source:

<static> fallbackCopy(src, dest) → {object}

Copy properties only if not exists in destination.

Parameters:
Name Type Description
src object

Source object.

dest object

Destination object.

Source:
Returns:
  • Destination object.
Type
object