Using ES6's Map when available and functional.