getData

fun getData(format: String): String(source)

The DataTransfer.getData() method retrieves drag data (as a string) for the specified type. If the drag operation does not include data, this method returns an empty string.

MDN Reference