dojox/lang/utils (version 1.10)

See the dojox/lang/utils reference documentation for more information.

Method Summary

  • coerceType(target,source) Coerces one object to the type of another.
  • merge(object,mixin) Merge two objects structurally, mixin properties will override object's properties.
  • updateWithObject(target,source,conv) Updates an existing object in place with properties from an "source" object.
  • updateWithPattern(target,source,pattern,conv) Updates an existing object in place with properties from an "source" object.

Methods

coerceType(target,source)
Defined by dojox/lang/utils

Coerces one object to the type of another.

Parameter Type Description
target Object

object, which typeof result is used to coerce "source" object.

source Object

object, which will be forced to change type.

Returns:undefined
merge(object,mixin)
Defined by dojox/lang/utils

Merge two objects structurally, mixin properties will override object's properties.

Parameter Type Description
object Object

original object.

mixin Object

additional object, which properties will override object's properties.

Returns:instance | undefined | Object

additional object, which properties will override object's properties.

updateWithObject(target,source,conv)
Defined by dojox/lang/utils

Updates an existing object in place with properties from an "source" object.

Parameter Type Description
target Object

the "target" object to be updated

source Object

the "source" object, whose properties will be used to source the existed object.

conv Boolean
Optional

force conversion to the original type

Returns:Object

the "target" object to be updated

updateWithPattern(target,source,pattern,conv)
Defined by dojox/lang/utils

Updates an existing object in place with properties from an "source" object.

Parameter Type Description
target Object

the "target" object to be updated

source Object

the "source" object, whose properties will be used to source the existed object.

pattern Object

object, whose properties will be used to pull values from the "source"

conv Boolean
Optional

force conversion to the original type

Returns:Object

the "target" object to be updated

Error in the documentation? Can’t find what you are looking for? Let us know!