mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 13:01:13 +00:00
20 lines
366 B
JavaScript
20 lines
366 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule pointsDiffer
|
|
*/
|
|
'use strict';
|
|
|
|
var dummyPoint = {x: undefined, y: undefined};
|
|
|
|
var pointsDiffer = function(one, two) {
|
|
one = one || dummyPoint;
|
|
two = two || dummyPoint;
|
|
return one !== two && (
|
|
one.x !== two.x ||
|
|
one.y !== two.y
|
|
);
|
|
};
|
|
|
|
module.exports = pointsDiffer;
|