=== lengthMatch ? console.log( "it's a match" ) : console.log( "different lengths :(" );
})
This can be work ,I think🧐
parentArr.every((c, i, p) => p[0].length === c.length)
Is this checking if all childs'length is pointing to the same value ?
You can use array destructuring for the third parameter.
(c,i,[{length:n}])
Обсуждают сегодня