"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get distinct () {
        return distinct;
    },
    get groupArrayBy () {
        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