UNPKG

delphirtl

Version:
30 lines (15 loc) 555 B
[**delphirtl**](../README.md) **Docs** *** [delphirtl](../globals.md) / haveNoDuplicates # Function: haveNoDuplicates() > **haveNoDuplicates**(`arr1`, `arr2`, `key`): `boolean` Compare all elements of arr1 and arr2 and ensure they have no duplicates ## Parameters **arr1**: `any`[] **arr2**: `any`[] **key**: `string` ## Returns `boolean` true if there's duplicates, false otherwise ## Defined in [src/arrayutils.ts:55](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/arrayutils.ts#L55)