A module to check whether a JavaScript value is of a certain type