Built-In Object Type: Object

Inherits All
(MORE DESCRIPTION TO COME.)
Methods:
NameArgumentsDescription
assertHas
name
Throws an assertion if a member with its key named name does not exist.
clear
  Removes all the data members.
copy
  Returns a copy of this object. All keys and values are cloned.
get
name
Returns the value referenced by the key name. This is the same as this operator: astruct.(name).
has
name
Returns true if a member named as name exists.
hasMethod
name
Returns true if the method named as name exists.
keys
  Returns an array of all the keys.
keysFiltered
filterFunction
Returns an array of the keys filtered by filterFunction.
keysFilteredAndSortedByValue
filterFunction
comparatorFunction
Returns the keys that correspond to the values filtered by the function filterFunction, which must be specified, and also sorted with comparatorFunction if specified, or the natural comparator.
keysFilteredByValue
filterFunction
Returns the keys that correspond to the values filtered by the function filterFunction, which must be specified.
keysSorted
comparatorFunction
Returns an array of all the keys, sorted by comparatorFunction function if specified or by natural order.
keysSortedByValue
comparatorFunction
Returns the keys that correspond to the values sorted by with comparatorFunction if specified, or the natural comparator.
remove
name
Removes the data member with its key named name.
set
add
name
value
Set the value to the key name. This is the same as this operator: astruct.(name) = value;.
size
length
  Returns the number of data members.
transpose
className
Transposes this object to type className.
values
  Returns an array of all the values.