const mimeTypes = navigator.mimeTypes;
const pdf = mimeTypes.namedItem("application/pdf");
if (pdf) {
console.log(pdf.description);
}MimeTypeArray / notebook
MimeTypeArray
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.