https://leetcode.com/problems/count-the-number-of-consistent-strings/


Runtime: 157 ms, faster than 45.00% of TypeScript online submissions for Count the Number of Consistent Strings.

Memory Usage: 55.9 MB, less than 15.00% of TypeScript online submissions for Count the Number of Consistent Strings.



```typescript
function countConsistentStrings(allowed: string, words: string[]): number {
    //8:15
    let the_allowed = allowed.split("")
    let counting = 0
    for (const word of words) {
        let ok = true
        for (const char of word.split("")) {
            if (!the_allowed.includes(char)) {
                ok = false
                break
            }
        }
        if (ok == true) {
            counting += 1
        }
    }
    return counting
    //8:16
};
```
