I registered a callback function(abc) for a forEach call. The function abc is defined as a closure and it seems it doesn't get called. I would really appreciate to know more about this.
Code:
function xyz(array)
{
// do something
function abc(value,index,origin_array){
// do something
}
array.forEach(abc);
//other stuff
}
xyz(so we don't know what the value ofarrayis). Other than that, your code looks perfectly fine, so it's not possible to give you an answer.