dart-exercism/pangram/lib/pangram.dart

11 lines
213 B
Dart
Raw Normal View History

2024-10-14 11:37:17 +02:00
class Pangram {
bool isPangram(String pangram) =>
pangram
.toLowerCase()
.replaceAll(new RegExp(r'[^a-z]'), '')
.split('')
.toSet()
.length ==
26;
}