So..
I am passing data to a function that handles strings and numbers differently.
I would LIKE to be able to pass an array of values and detect what the types of each value is.
row[0] = 23;
row[1] = "this is a string... look at it be a string!";
row[2] = true;
$.each(row, function(){
alert(typeof(this));
//alerts object
});
Is it possible to detect the “actual” datatypes in a given row?
Try
Whenever possible I try to avoid using “this” in callbacks and using explicit arguments is usually clearer and more predictable.