positionOf

Factory function to create a Position object from a FEN string. Throws an exception if the FEN string is invalid or leads to an illegal position.

This is a facade created to enable exporting the code to JS, though it can also be used directly within the JS modules of any KMP project.