UNPKG

@fdm-monster/server

Version:

FDM Monster is a bulk OctoPrint manager to set up, configure and monitor 3D printers. Our aim is to provide extremely optimized websocket performance and reliability.

27 lines (26 loc) 689 B
"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