@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
21 lines • 530 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.andArrays = exports.equalArrays = void 0;
function equalArrays(a1, a2) {
let i = a1.length;
if (i != a2.length) {
return false;
}
while (i--) {
if (a1[i] !== a2[i])
return false;
}
return true;
}
exports.equalArrays = equalArrays;
function andArrays(a1, a2) {
const s2 = new Set(a2);
return a1.filter(i => s2.has(i));
}
exports.andArrays = andArrays;
//# sourceMappingURL=arrays.js.map