mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-13 04:03:45 +08:00
NineAI 2.4.2
This commit is contained in:
15
dist/common/utils/getDiffArray.js
vendored
Normal file
15
dist/common/utils/getDiffArray.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getDiffArray = void 0;
|
||||
function getDiffArray(aLength, bLength, str) {
|
||||
const a = Array.from({ length: aLength }, (_, i) => i + 1);
|
||||
const b = Array.from({ length: bLength }, (_, i) => i + 1);
|
||||
const diffArray = [];
|
||||
for (let i = 0; i < a.length; i++) {
|
||||
if (!b.includes(a[i])) {
|
||||
diffArray.push(`${str}${a[i]}`);
|
||||
}
|
||||
}
|
||||
return diffArray;
|
||||
}
|
||||
exports.getDiffArray = getDiffArray;
|
||||
Reference in New Issue
Block a user