Here is the code.
export function noSideEffects<T>(fn: () => T): T { return {toString: fn}.toString() as unknown as T; }
Aucun commentaire:
Enregistrer un commentaire