getDocument
Gets the document for the given target or the global document if no target is provided.
function getDocument(target?: ): Document;
| Element
| Window
| Node
| Document
| null
Gets the document for the given target or the global document if no target is provided.