I am trying to check if the length of array 1 matches the length of array 2, and that array 1 does not contain empty objects
my attempt
const matrixValues = _.size(array1,Object.keys(array1.map(item => item)).length !== 0) === array2.length
array2: [{'somevalue': '1'}, {'somethingelse: '2'}, {'somethingmore': '3'}]
array1: [ {'somevalue': '1'}, {'somethingelse': '2'}, {} ]
array1 has a length of 3 here, but it contains an empty object, so we should return false, the empty object check should also not rely on the index of the element