"use strict";

function recordIndexEquals(a, b) {
    return "number" == typeof a && "number" == typeof b ? a === b : Array.isArray(a) && Array.isArray(b) ? a.length === b.length && a.every(((val, index) => val === b[index])) : "number" == typeof a && Array.isArray(b) ? 1 === b.length && b[0] === a : !(!Array.isArray(a) || "number" != typeof b) && (1 === a.length && a[0] === b);
}

function includesRecordIndex(array, target) {
    return array.some((item => recordIndexEquals(item, target)));
}

function findRecordIndexPosition(array, target) {
    return array.findIndex((item => recordIndexEquals(item, target)));
}

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.findRecordIndexPosition = exports.includesRecordIndex = exports.recordIndexEquals = void 0, 
exports.recordIndexEquals = recordIndexEquals, exports.includesRecordIndex = includesRecordIndex, 
exports.findRecordIndexPosition = findRecordIndexPosition;
//# sourceMappingURL=types.js.map