millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

random/choice - use isArray() check instead of .length? #24

Closed millermedeiros closed 12 years ago

millermedeiros commented 12 years ago

in case value is a string or any other object that has a .length property (string, regexp, function, etc)