What defineCodec needs. parse may throw on bad input; the codec catches it.
defineCodec
parse
Optional
Defaults to Object.is.
Object.is
Turns a value into a raw value.
Returns true if the input is a value of this codec.
true
A primitive key that is the same for equal values. See Codec.key.
Codec.key
Turns a raw value into a value. It can throw on bad input.
What
defineCodecneeds.parsemay throw on bad input; the codec catches it.