Commit 2e15c28
committed
Exposes type names as
Adds getters (instead of basic properties) to the `is` function for each type descriptor name.
This allows using `is.number` or `is.object` directly
instead of passing strings to methods like `is(val).all()`.is function properties1 parent a5145b1 commit 2e15c28
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | | - | |
| 153 | + | |
153 | 154 | | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
0 commit comments