dojox/mvc/equals (version 1.10)

Summary

Compares two dojo/Stateful objects, by diving into the leaves.

Recursively iterates and compares stateful values.

Usage

equals(dst,src,options);
Parameter Type Description
dst Anything

The stateful value to compare with.

src Anything

The stateful value to compare with.

options dojox/mvc/equalsOptions

The object that defines how two stateful values are compared.

Returns:Boolean | undefined

True if dst equals to src, false otherwise.

See the dojox/mvc/equals reference documentation for more information.

Method Summary

  • equalsArray(dst,src) Returns if the given two stateful arrays are equal.
  • equalsDate(dst,src)
  • equalsObject(dst,src) Returns if the given two stateful objects are equal.
  • equalsValue(dst,src) Returns if the given two values are equal.
  • getType(v) Returns the type of the given value.

Methods

equalsArray(dst,src)
Defined by dojox/mvc/equals

Returns if the given two stateful arrays are equal.

Parameter Type Description
dst Anything[]

The array to compare with.

src Anything[]

The array to compare with.

Returns:boolean
equalsDate(dst,src)
Defined by dojox/mvc/equals
Parameter Type Description
dst Date
src Date
Returns:boolean
equalsObject(dst,src)
Defined by dojox/mvc/equals

Returns if the given two stateful objects are equal.

Parameter Type Description
dst Object

The object to compare with.

src Object

The object to compare with.

Returns:boolean
equalsValue(dst,src)
Defined by dojox/mvc/equals

Returns if the given two values are equal.

Parameter Type Description
dst Anything
src Anything
Returns:boolean
getType(v)
Defined by dojox/mvc/equals

Returns the type of the given value.

Parameter Type Description
v Anything

The value.

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