Get current Tileset

According to the RMMV Script Calls Sheet you can change the current tileset with "$gameMap.changeTileset(n);" but is there also a possibility to get the current tileset to write a script depending on which one is loaded at the moment?
$gameMap.tilesetId()
That was really quick and exactly what I've wanted. Thank you!  😀

Original thread: https://forums.rpgmakerweb.com/threads/get-current-tileset.49769/