Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Document s.optional() #43

Open
FagnerMartinsBrack opened this issue May 19, 2016 · 0 comments
Open

Document s.optional() #43

FagnerMartinsBrack opened this issue May 19, 2016 · 0 comments

Comments

@FagnerMartinsBrack
Copy link

There is no documentation for the s.optional( ... ) API, only s.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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant