Nodejs Utililty Methods Event Type Check

List of utility methods to do Event Type Check

Description

The list of methods to do Event Type Check are organized into topic(s).

Method

isFileDrag()
Event.prototype.isFileDrag = function() {
  return (
    this.dataTransfer !== undefined &&
    this.dataTransfer.items.length > 0 &&
    this.dataTransfer.items[0].kind === 'file'
  );
};