Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Object.zObjectId

zObjectId() -> string

Description

Return the unique ID assigned to this object.

This allows the object to be used as a Map key, or to check if two objects are identical.

$date = Date.create('today')

$dateHash = $date.zObjectId()
//= '{object#1003}'

$labelForDate = {}
$labelForDate[$dateHash] = 'Today'

See Also