UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

16 lines (14 loc) 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.arrayEqual = void 0; var _itemEqual = require("./itemEqual"); /* Copyright (c) 2022 Betim Beja and Shko Online LLC Licensed under the MIT license. */ const arrayEqual = (source, target) => { return Array.isArray(source) && Array.isArray(target) && source.length == target.length && source.every(s => target.some(t => (0, _itemEqual.itemEqual)(s, t))); }; exports.arrayEqual = arrayEqual;