28 Javascript Compare Two Arrays Of Objects

First, if value is an object and other is an array (or vice-versa), they're not equal. We'll use Object.prototype.t…