Maps
back to TreatJS Core API Documentation
StringMap
(TreatJS 1.x)
Description
Map.StringMap ( elements[, strict] );
Parameters
- elements
- An array or an object element mapping primitive values to Contracts.
- strict
- Invoke strict mode.
RegExpMap
(TreatJS 1.x)
Description
Map.RegExpMap ( elements );
Parameters
- elements
- Array of Mappings.
Mapping
(TreatJS 1.x)
Description
Map.Mapping ( regexp, contract );
Parameters
- regexp
- JavaScript regular expression object.
- contract
- Contract.