var value_1 = [1, 2, 3]; var value_2 = [1, 2, 3]; var result = _.isEqual(value_1, value_2); console.log(result); // true
var value_1 = { name: 'John', age: 25 }; var value_2 = { name: 'John', age: 25 }; var result = _.isEqual(value_1, value_2); console.log(result); // trueIn this example, we are comparing two objects that have the same properties with the same values. isEqual function returns true because both objects have the same keys and values. This function is part of the underscore.js library, which is a package used for functional programming in JavaScript.