Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 5 lines · 232 B · at 2e2b18f

// == coerces ("1" == 1). tsus fix rewrites to === and !==.const isAdmin = (role: string): boolean => role == "admin";const isGuest = (role: string): boolean => role != "member";console.log(isAdmin("admin"), isGuest("member"));