decompress(str, dictionary = null)
Decompresses a string using the current reverse dictionary. Optionally, a new dictionary can be passed.
Parameters:
str– The string to decompress.dictionary– Optional dictionary to override current one.
Example:
1const decompressed = compressor.decompress("$a $b $a");2// "hello world hello"