Get file extension from item

How does one get the file extension from an item?
I’m trying to detect PDFs and only use UniversalViewer for them.

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.