var map = new Map([new Pair("name", "John Smith"), new Pair("age", 35)]);
var parser = new MapParser(map);
alert(parser.format("age")); //Result is 35
alert(parser.parse("John Smith")); //Result is "name"
| Name | Type | Default | Description |
|---|---|---|---|
| map | Map | The Map used to get the values | |
| directParse | boolean | false | If true, will not search the value to parse, but return the "formatted" value itself |
| directParse | If true, will not search the value to parse, but return the "formatted" value itself |
| map | The Map used to get the values |
|
directParse
If true, will not search the value to parse, but return the "formatted" value itself |
|
map
The Map used to get the values |