Skip to content

Commit f4f494f

Browse files
author
Alain Dumesny
committed
changed (typeof foo !== 'undefined') to (foo !== underfine)
* shorten the test cases for all but first 2 instances than check for global vars * in some browser this can be a lot faster too (80% on Edge) https://jsperf.com/type-of-undefined-vs-undefined/30 * shorter notation. in some case just if (foo) as we should check for null as well (if there are not 0 number cases) ran all tests and demos. no issues.
1 parent 38e027a commit f4f494f

File tree

1 file changed

+69
-97
lines changed

1 file changed

+69
-97
lines changed

0 commit comments

Comments
 (0)