Checks if the given value matches the given shape. If it does, returns the value. If not, returns undefined.
undefined
The original value or `undefined.
value
Checks if the given value matches the given shape. If it does, returns the value. If not, returns
undefined
.