Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 8 lines · 349 B · at 83c2f03

// A user-defined function named `match` called WITHOUT a block must stay a plain call.const matchScore = (a: number, b: number): number => (a === b ? 1 : 0);const match = (pattern: string, input: string): boolean => input.includes(pattern);console.log(match("ell", "hello"));console.log(match("xyz", "hello"));console.log(matchScore(2, 2));