dist/vuex-orm.esm.js
function groupBy(collection, iteratee) {
    return collection.reduce(function (records, record) {
        var key = iteratee(record);
        if (records[key] === undefined) {
            records[key] = [];
        }
        records[key].push(record);
        return records;
    }, {});
}
function groupBy(collection, iteratee) {
    return collection.reduce(function (records, record) {
        var key = iteratee(record);
        if (records[key] === undefined) {
            records[key] = [];
        }
        records[key].push(record);
        return records;
    }, {});
}
function groupBy ( collection , iteratee ) { return collection . reduce ( function ( records , record ) { var key = iteratee ( record ) ; if ( records [ key ] === undefined ) { records [ key ] = [ ] ; } records [ key ] . push ( record ) ; return records ; } , { } ) ; }
Creates an object composed of keys generated from the results of running
each element of collection thru iteratee.
Creates an object composed of keys generated from the results of running each element of collection thru iteratee .