react-native-macos/Libraries/Utilities/differ/pointsDiffer.js

20 строки
366 B
JavaScript
Исходник Обычный вид История

2015-01-30 04:10:49 +03:00
/**
* 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;