NotesService: Finished hardcoded functions

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-02-20 16:09:02 +01:00 committed by David Mehren
parent ff61fea96f
commit 128d861512
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 117 additions and 65 deletions

View file

@ -0,0 +1,9 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function checkArrayForDuplicates<T>(array: Array<T>): boolean {
return new Set(array).size !== array.length;
}