@foxglove/ros1
Version:
Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer
10 lines • 405 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.difference = difference;
// Return the set difference between an array and another array or iterable.
// The results are not sorted in any stable ordering
function difference(a, b) {
const sb = new Set(b);
return Array.from(new Set(a.filter((x) => !sb.has(x))).values());
}
//# sourceMappingURL=difference.js.map