download
raw
666 Bytes
"use strict";
/**
* Returns true when fn returns true for all members of obj.
* This is an every implementation that works for all iterables
*
* @param {object} obj
* @param {Function} fn
* @returns {boolean}
*/
module.exports = function every(obj, fn) {
var pass = true;
try {
// eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods
obj.forEach(function () {
if (!fn.apply(this, arguments)) {
// Throwing an error is the only way to break `forEach`
throw new Error();
}
});
} catch (e) {
pass = false;
}
return pass;
};

Xet Storage Details

Size:
666 Bytes
·
Xet hash:
f8fc8c2cf3408549fedbefcce421f33fa5bd214e2075c23d2e33a6a73fb84971

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