klf-200-api
Version:
This module provides a wrapper to the socket API of a Velux KLF-200 interface. You will need at least firmware 0.2.0.0.71 on your KLF interface for this library to work.
18 lines • 659 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isArrayEqual = void 0;
function isArrayEqual(first, second) {
if (first.length !== second.length) {
return false; // If length is different then the arrays can't be the same.
}
// Compare items
for (const element of first) {
if (second.indexOf(element) === -1) {
return false; // If element was not found in second array, the arrays aren't the same.
}
}
// All items are contained in both arrays -> the are equal.
return true;
}
exports.isArrayEqual = isArrayEqual;
//# sourceMappingURL=UtilityFunctions.js.map
;