typescript(option): refactor: refactored iter to use always
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
04ca5c6e00
commit
aa18688c7a
|
@ -75,7 +75,7 @@ export const get = <T>(option: Option<T>) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const iter = <T>(mapper: Mapper<T, void>, option: Option<T>) => {
|
export const iter = <T>(mapper: Mapper<T, void>, option: Option<T>) => {
|
||||||
match(option, mapper, () => {})
|
return match(option, mapper, always(None))
|
||||||
}
|
}
|
||||||
|
|
||||||
export const toArray = <T>(option: Option<T>) => {
|
export const toArray = <T>(option: Option<T>) => {
|
||||||
|
|
Loading…
Reference in a new issue