@shko.online/componentframework-mock
Version:
Mocking library to help with testing PowerApps Component Framework Components
9 lines (8 loc) • 338 B
JavaScript
/*
Copyright (c) 2022 Betim Beja and Shko Online LLC
Licensed under the MIT license.
*/
import { itemEqual } from './itemEqual';
export const arrayEqual = (source, target) => {
return Array.isArray(source) && Array.isArray(target) && source.length == target.length && source.every(s => target.some(t => itemEqual(s, t)));
};