The function filter_special_chars does not have to throw a TypeError when its argument text is null or undefined because (1) it can be argued that neither of these two contains special characters and (2) it is much more convenient to have the check in the function in question rather at its multiple call sites.master
|
|
||
| 588 |
|
588 |
|
| 589 |
|
589 |
|
| 590 |
|
590 |
|
| 591 |
|
|
|
| 592 |
|
|
|
|
591 |
|
|
| 593 |
|
592 |
|
| 594 |
|
593 |
|
| 595 |
|
594 |
|
|
|
||
| 4 |
|
4 |
|
| 5 |
|
5 |
|
| 6 |
|
6 |
|
| 7 |
|
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
| 8 |
|
10 |
|
| 9 |
|
11 |
|
| 10 |
|
12 |
|