getset
JavaScript
★ 0
updated 11y ago
Convenience method for Maps. Supply a key and a factory function. If the key is set you will receive its value. If it isn't, the factory will be used to set it and return it.
No plain-English explanation yet — one is being written right now. Check back in a minute.