"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.arrayify = exports.findCommonElement = exports.uniqify = void 0;
function findCommonElement(array1, array2) {
    for (const a of array1) {
        for (const b of array2) {
            if (a === b)
                return a;
        }
    }
    return null;
}
exports.findCommonElement = findCommonElement;
function arrayify(element) {
    if (Array.isArray(element))
        return element;
    return [element];
}
exports.arrayify = arrayify;
function uniqify(elements) {
    return Array.from(new Set(elements));
}
exports.uniqify = uniqify;
//# sourceMappingURL=array.js.map