I was thinking about switching back to Windows but finally getting missing functionalities like Recall may change my mind...
(maximum_number_of_students <=> students.size).clamp(0..)
Holy... Is this better or worse than write-once perl regexes? git checkout -p -- . function is<T extends string>(value: string, prefix: T): value is `${typeof prefix}_${string}` {
return value.startsWith(`${prefix}_`)
}
You can now do `is(id, 'user')`. function isFactory<T extends string>(prefix: T) {
return (value: string) => is(value, prefix)
}
const isUser = isFactory('user')
const isOrder = isFactory('order')
Not too bad.