UNPKG

@shko.online/componentframework-mock

Version:

Mocking library to help with testing PowerApps Component Framework Components

16 lines (13 loc) 413 B
/* Copyright (c) 2022 Betim Beja and Shko Online LLC Licensed under the MIT license. */ import { itemEqual } from './itemEqual'; export const arrayEqual = <T>(source: T[] | null, target: T[] | null) => { return ( Array.isArray(source) && Array.isArray(target) && source.length == target.length && source.every((s) => target.some((t) => itemEqual<T>(s, t))) ); };