From a0ade5099c1b92fce22862991fef5e19a64e7abf Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 13 Nov 2021 00:52:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Supprime=20une=20fonction=20non?= =?UTF-8?q?=20utilis=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mon-entreprise/source/utils.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mon-entreprise/source/utils.ts b/mon-entreprise/source/utils.ts index 7414a28c2..23e054c45 100644 --- a/mon-entreprise/source/utils.ts +++ b/mon-entreprise/source/utils.ts @@ -41,12 +41,6 @@ export function softCatch( } } -export function mapOrApply(fn: (a: A) => B, x: A): B -export function mapOrApply(fn: (a: A) => B, x: Array): Array -export function mapOrApply(fn: (a: A) => B, x: A | Array) { - return Array.isArray(x) ? x.map(fn) : fn(x) -} - export function getSessionStorage() { // In some browsers like Brave, even just reading the variable sessionStorage // is throwing an error in the iframe, so we can't do things if sessionStorage !== undefined