feature request:: Would it be possible to pass primitive number or integer or numeric string as method parameter?
Opened this issue · 0 comments
ez3736 commented
Would it be possible to pass primitive number or integer or numeric string as method parameter?
If I pass numeric literals to any crunch method, either it errors out or gives weird result.
For eg:
var y = crunch.add ([25] , 20) ;
Uncaught TypeError: v.slice is not a function
crunch.add ([25] , "20") ;
[0]
0: 0
length: 1
proto: Array(0)
can we mix and match Interger, Number, Numeric strung, & crunch number etc? otherwise, it becomes very difficult to use Crunch as it is very tedious to convert each and every parameters using crunch.parse() at some point in the application..