When I Run My Code I Get The Following Result []object Object] [object Object] But Should Be Giving Me An Ordered Array
var rangeArray= new Array(); rangeArray.push(parseRangeString(1, '< -4 & < 10')); rangeArray.push(parseRangeString(2, '< 15 & < 19')); ran
Solution 1:
parseRangeString(1, "< -4 & < 10")
returns some object (or hash like {}
), it's view as a string is [Object object]
. When you alert your array the programm convert it to string, dysplays you it is array, and then dysplays all elements of array in it's string view.
Post a Comment for "When I Run My Code I Get The Following Result []object Object] [object Object] But Should Be Giving Me An Ordered Array"