Class ModelMap

A utility wrapper around an associative array that stores models.

Inherits from

  • Object (base class)

Fields

Name Type Description
data TValue[TKey]

Methods

Name Description
each Allows applying a delegate over the values of the mapping.
filter Allows using a delegate to filter the keys/values of the mapping into a new mapping.
filter Allows using a delegate to filter the values of the mapping.
get Return the value for a key.
get Return the value for a key, or if it doesn't exist a default value.
has Returns true if the key exists within the mapping.
keys Returns an array of keys from the mapping.
keyUnion Return the set-union for an array of keys
length Returns the length of the mapping.
opApply
opCall Utility method that returns the value for a key.
opIndex
opIndexAssign
pick Returns a single value from the mapping, based on the return value of a delegate.
remove Removes a key.
set Set the key to a value.
subset Returns a new mapping from a subset of keys.
values returns an array of values from the mapping.