tahamajs's picture
download
raw
424 Bytes
var keys = require('./keys.js');
// Returns whether an object has a given set of `key:value` pairs.
function isMatch(object, attrs) {
var _keys = keys(attrs), length = _keys.length;
if (object == null) return !length;
var obj = Object(object);
for (var i = 0; i < length; i++) {
var key = _keys[i];
if (attrs[key] !== obj[key] || !(key in obj)) return false;
}
return true;
}
module.exports = isMatch;

Xet Storage Details

Size:
424 Bytes
·
Xet hash:
004b6d8cb1f3239a69c5fc7dfb179e705745889a4e03e97dc2ed57f232b60df8

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