Nodejs Event Type Check isFileDrag()

Here you can find the source of isFileDrag()

Method Source Code

Event.prototype.isFileDrag = function() {
  return (/*from  w w w  .j a  v  a 2s. c o  m*/
    this.dataTransfer !== undefined &&
    this.dataTransfer.items.length > 0 &&
    this.dataTransfer.items[0].kind === 'file'
  );
};