- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
19 lines
668 B
JavaScript
19 lines
668 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var filter_1 = require("./filter");
|
|
var contains_1 = require("./contains");
|
|
/**
|
|
* Flattens `array` a single level deep.
|
|
*
|
|
* @param {Array} arr The array to inspect.
|
|
* @param {Array} values The values to exclude.
|
|
* @return {Array} Returns the new array of filtered values.
|
|
* @example
|
|
* difference([2, 1], [2, 3]); // => [1]
|
|
*/
|
|
var difference = function (arr, values) {
|
|
if (values === void 0) { values = []; }
|
|
return filter_1.default(arr, function (value) { return !contains_1.default(values, value); });
|
|
};
|
|
exports.default = difference;
|
|
//# sourceMappingURL=difference.js.map
|