AngularJS angular.copy() equality test.
by razh
JavaScript
var test = {
x: 100,
y: 150
};
var test2 = angular.copy(test);
console.log(test == test2); // False.
console.log(test === test2); // False.
by razh
var test = {
x: 100,
y: 150
};
var test2 = angular.copy(test);
console.log(test == test2); // False.
console.log(test === test2); // False.