function flatMap(arr, callback) {
      return Array.prototype.concat.apply([], arr.map(callback));
    }
Flat map the result invoking a callback for every item in an array.
https://gist.github.com/samgiles/762ee337dff48623e729
@param {Array} arr
@param {function} callback
@return {Array}