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