Isomorphic map-reduce function to flatten an array into the supplied array
github.com/75lb/reduce-flatten
75lb/reduce-flatten