Files
lan-manager/web/node_modules/@antv/util/lib/uniq.js
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

19 lines
542 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function uniq(arr, cache) {
if (cache === void 0) { cache = new Map(); }
var r = [];
if (Array.isArray(arr)) {
for (var i = 0, len = arr.length; i < len; i++) {
var item = arr[i];
// 加一个 cache提升性能
if (!cache.has(item)) {
r.push(item);
cache.set(item, true);
}
}
}
return r;
}
exports.default = uniq;
//# sourceMappingURL=uniq.js.map