I have a 2D array where I need to filter the rows having date field (3d column)
var data = [ [\'1\',\'a\',\'12-12-2019\',\'A\'], [\'2\',\'b\',\'\',\'A\'], [\'3\'
When it comes to speed for loop is fastest as your value to match is always at fixed index so you can just directly check and value and push your data
for
var data = [['1','a','12-12-2019','A'],['2','b','','A'],['3','c','12-1-2019','A'],['4','d','','A'],]; let op = [] for(let i=0; i