Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ toArray
Function
toArray
packages/effect/src/Option.ts:1545–1545 ·
view source on GitHub ↗
(self: Option<A>)
Source
from the content-addressed store, hash-verified
1543
* @since 2.0.0
1544
*/
1545
export
const
toArray = <A>(self: Option<A>): Array<A> => isNone(self) ? [] : [self.value]
1546
1547
/**
1548
* Splits an `Option` into two `Option`s based on the result of a mapping
Callers
nothing calls this directly
Calls
1
isNone
Function · 0.50
Tested by
no test coverage detected