question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request for a fc.undefined<T>(arb: Arbitrary<T>): Arbitrary<T | undefined>

See original GitHub issue

In much the same way as the fc.option<T>(arb: Arbitrary<T>): Arbitrary<T | null> function, I was wondering why there wasn’t an equivalent fc.undefined<T>(arb: Arbitrary<T>): Arbitrary<T | undefined>.

I might open a PR for it but the implementation for fc.option looks… rather complex.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MaxwellBocommented, Oct 1, 2019

Amazing, thanks for this addition @dubzzz, just noticed it today in the VSCode autocomplete!

0reactions
dubzzzcommented, Oct 2, 2019

Closing the issue as it’s supposed to be fixed and released now.

Feel free to re-open

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview - Joe Sandbox
chrome.exe (PID: 6624 cmdline: C:\Program Files\Google\Chrome\Application\chrome.exe" --start-maximized "about:blank MD5: 0FEC2748F363150DC54C1CAFFB1A9408).
Read more >
Viewing online file analysis results for 'heroku-x64 (1).exe'
Analysed 3 processes in total (System Resource Monitor). heroku-x64_1_.exe (PID: 3260). cmd.exe /C powershell -ExecutionPolicy Bypass -Command ...
Read more >
March 2021 - ResearchGate
The present paper attempts to bridge the world of DGS technology with the world Euclid bequeathed to us in his "Elements".
Read more >
mozilla-central: changeset 187746 ...
+ pushUrl: undefined, + + /** + * Call to start the connection to the push socket server. On + * connection, it...
Read more >
Bootstrap - Plunker
Le styles --> <link data-require="bootstrap-css" data-semver="3.3.6" ... jQuery contains a lot of sophisticated code to parse arbitrary HTML fragments, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found