From aa18688c7a177590d51bf99299c8e5e196d5b98c Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 20 Dec 2019 14:41:13 +0200 Subject: [PATCH] typescript(option): refactor: refactored iter to use always Signed-off-by: prescientmoon --- typescript/option/src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/option/src/helpers.ts b/typescript/option/src/helpers.ts index b248d65..fb87ce1 100644 --- a/typescript/option/src/helpers.ts +++ b/typescript/option/src/helpers.ts @@ -75,7 +75,7 @@ export const get = (option: Option) => { } export const iter = (mapper: Mapper, option: Option) => { - match(option, mapper, () => {}) + return match(option, mapper, always(None)) } export const toArray = (option: Option) => {