Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular.equals(a, b) != angular.equals(b, a) where a = {} && b = {x:undefined} #1648

Closed
@noreal81

Description

@noreal81

Parameter ordering is affecting the output of angular.equals when there are undefined, but present, properties on one of the objects.

a = {};
b = {x:undefined};
angular.equals(a, b) == angular.equals(b, a) // returns false.

http://jsfiddle.net/YCDRx/3/

It appears that this is not fixed between 1.0.2 and HEAD.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions