Skip to content

Commit

Permalink
Use '=== undefined'
Browse files Browse the repository at this point in the history
  • Loading branch information
nlundquist committed Apr 13, 2017
1 parent 4fa19ca commit dd8deeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ props.dotNotation = function(dotProperty){

compares[dotProperty] = function(aVal, bVal, a, b, propertyName) {
// if the value wasn't picked out from the parent try a dotNotation lookup
if (aVal == undefined) {
if (aVal === undefined) {
aVal = nestedLookup(a, propertyName.split('.'));
}
if (bVal == undefined) {
if (bVal === undefined) {
bVal = nestedLookup(b, propertyName.split('.'));
}

Expand Down

0 comments on commit dd8deeb

Please sign in to comment.