lune-climate / ts-results-es

A TypeScript implementation of Rust's Result and Option.
MIT License
98 stars 8 forks source link

Implement {Option,Result}.unwrapOrElse #155

Closed jstasiak closed 4 months ago

jstasiak commented 4 months ago

Something I re-discovered as missing yesterday, we can definitely use this in some places.

The equivalent of Rust's unwrap_or_else.

stephen776 commented 2 months ago

Hello - this does not appear to be included in the latest 4.2.0 release. Will there be a new release soon?

jstasiak commented 2 months ago

Hey, yeah not released yet, do you need it? I can expedite that if so.

mordv commented 1 month ago

Hey, yeah not released yet, do you need it?

Wow. So why it is mentioned in docs?