cherche / fuchsia

An attempt at creating an intelligent virtual personal assistant for the web based on Jared Cubilla's Jarvis.
https://cherche.github.io/fuchsia/
MIT License
5 stars 6 forks source link

"Give me a random integer between x and y" can't detect if x and y are both integers #12

Closed cherche closed 8 years ago

Bergenfrundt commented 8 years ago

is there no if.morethanonecharacter or something?

cherche commented 8 years ago

Well, it would be if(x.length > 1), but that's not very useful in checking if the number is an integer.

cherche commented 8 years ago

This was a mistake on my end. I was supposed to use !isNaN(y) instead of y !== NaN.