I have this function:
function activateControlFlow(arrayControl) {
$.each(arrayControl, function(){
console.log(this);
$(this).css({color:'#FFF', cursor: 'pointer'});
});
}
and I don't understand why if I pass to this function only one item, prints me that item as the array. Here is my example:
activateControlFlow(["a#nexth"]);
and in the console it prints this:
String {0: "a", 1: "#", 2: "n", 3: "e", 4: "x", 5: "t", 6: "h"}
WHY???