Ecmascript 6 Map and Set prototype helper functions (to use in places where new Maps or Sets are needed from hash maps and/or arrays).