deno.land / x / masx200_leetcode_test@10.6.5 / detect-capital / index.ts

نووسراو ببینە
1
2
3
4
export default function detectCapitalUse(word: string): boolean { return /(^[A-Z]+$)|(^[a-z]+$)|(^[A-Z][a-z]+$)/g.test(word);}
masx200_leetcode_test

Version Info

Tagged at
a year ago