EdgeAIG's picture
download
raw
471 Bytes
'use strict';
var identity = require('../nodes/identity.js');
function mapIncludes(ctx, items, search) {
const { uniqueKeys } = ctx.options;
if (uniqueKeys === false)
return false;
const isEqual = typeof uniqueKeys === 'function'
? uniqueKeys
: (a, b) => a === b || (identity.isScalar(a) && identity.isScalar(b) && a.value === b.value);
return items.some(pair => isEqual(pair.key, search));
}
exports.mapIncludes = mapIncludes;

Xet Storage Details

Size:
471 Bytes
·
Xet hash:
30c055641078e3f71dee16012e0d42ee8b2ccab7fa48d2c4d520bb9512250301

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.