Data.filter not working in IE 8?

NormLO38

New Member
\[code\] countImage = data.filter(function(value) { return value !== undefined }).length;\[/code\]This statement return error of Object doesn't support this property or method, how to fix the problem ? thanksUpdate, data is get from ajax and it is an array encoded using json\[code\]$imgArray[] = $dir.DIRECTORY_SEPARATOR.$file.DIRECTORY_SEPARATOR.'Pv'.$filePadded.'.png';die(json_encode($imgArray));data: {'data':issueString}, success: function (data) { countImage = data.filter(function(value) { return value !== undefined }).length;..........\[/code\]
 
Back
Top