src/js/maps.js
/**
* convert a Map to a list of objects
* @param {Map/Object} Map a map of Key Value pairs
* @return {List/Array} new List
*/
convert a Map to a list of objects
convert a Map to a list of objects
function to_list(Map) {
  var R = [], i, Keys = Object.keys(Map)
  for (i = 0; i < Keys.length; i++) {
    R.push({key:Keys[i],value: Map[Keys[i]]});
  }
  return R;
}
function to_list ( Map ) { var R = [ ] , i , Keys = Object . keys ( Map ) for ( i = 0 ; i < Keys . length ; i ++ ) { R . push ( { key : Keys [ i ] , value : Map [ Keys [ i ] ] } ) ; } return R ; }
convert a Map to a list of objects
convert a Map to a list of objects