mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-02-04 19:14:27 +00:00
19 lines
481 B
JavaScript
Executable File
19 lines
481 B
JavaScript
Executable File
exports.isLeftClick = function(event) {
|
|
return event.button === 0;
|
|
};
|
|
|
|
exports.isModifiedEvent = function(event) {
|
|
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
|
};
|
|
|
|
exports.withoutProperties = function(object, properties) {
|
|
var property, result;
|
|
result = {};
|
|
for (property in object) {
|
|
if (object.hasOwnProperty(property) && properties.indexOf(property) == -1) {
|
|
result[property] = object[property];
|
|
}
|
|
}
|
|
return result;
|
|
};
|