export 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);
}

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

export function findRecordIndexPosition(array, target) {
    return array.findIndex((item => recordIndexEquals(item, target)));
}
//# sourceMappingURL=types.js.map
