Check is admin export

Does anyone know how i would go about doing a check is admin export for scripts.

for instance

isAdmin = export.es_extended.isAdmin() or isAdmin = exports["es_extended’]:isAdmin()

You’d need to make such function, for instance if you’re using JavaScript you could use .filter() or use a loop.