"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    distinct: function() {
        return distinct;
    },
    groupArrayBy: function() {
        return groupArrayBy;
    }
});
const groupArrayBy = (array, predicate)=>array.reduce((acc, value, index, array)=>{
        (acc[predicate(value, index, array)] ||= []).push(value);
        return acc;
    }, {});
const distinct = (value, index, self)=>{
    return self.indexOf(value) === index;
};

//# sourceMappingURL=array.util.js.map