There is no documentation for the `s.optional( ... )` API, [only `s.optional({ optional: true })`](https://github.com/TabDigital/strummer/blob/06dce387ee479d552d8d2101e90b4fa1493a1e76/README.md#optional-values). The supported behavior is that It accepts either a matcher or a primitive value in the first argument. [Here are the tests](https://github.com/TabDigital/strummer/blob/06dce387ee479d552d8d2101e90b4fa1493a1e76/test/matchers/optional.spec.js#L24).
There is no documentation for the
s.optional( ... )API, onlys.optional({ optional: true }).The supported behavior is that It accepts either a matcher or a primitive value in the first argument. Here are the tests.