chuanxshi / javascript-patterns

JavaScript Design Patterns
http://shichuan.github.io/javascript-patterns
9.39k stars 1.69k forks source link

Updated in strategy.html the validation for Number. #96

Closed DimitrK closed 6 years ago

DimitrK commented 11 years ago

Updated in strategy.html the validation for Number to catch edge cases like passing 1/0 which results to Infinity.

DimitrK commented 11 years ago

Valid

chuanxshi commented 6 years ago

@DimitrK @rdsn thanks, merged!