🔥 Supprime une fonction non utilisée

pull/1826/head
Maxime Quandalle 2021-11-13 00:52:38 +01:00
parent 074ff7e5bf
commit a0ade5099c
1 changed files with 0 additions and 6 deletions

View File

@ -41,12 +41,6 @@ export function softCatch<ArgType, ReturnType>(
}
}
export function mapOrApply<A, B>(fn: (a: A) => B, x: A): B
export function mapOrApply<A, B>(fn: (a: A) => B, x: Array<A>): Array<B>
export function mapOrApply<A, B>(fn: (a: A) => B, x: A | Array<A>) {
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