MapExtensions<Option, Value> extension

This extension adds utility functions to the Map class.

on
  • Map<Option, Value>

Methods

get(Option key, {required Value fallback}) → Value
Gets the value from the map for the provided key. If the key does not exist in the map, it returns the value of the fallback parameter.