<script>
tag, you can use the UMD build:Superstruct
global.User
struct will expect an object with an id
property that is a number, and name
and email
properties that are strings.User
struct to validate the data. The easiest way to do this is to use the assert
helper, like so: