From 768fed0aba6c7ca097f308d79c61bd4ffec97471 Mon Sep 17 00:00:00 2001 From: Sila Setthakan-anan Date: Wed, 12 Jun 2024 00:31:44 +0700 Subject: [PATCH] Update chain.mdx --- docs/curry/chain.mdx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/curry/chain.mdx b/docs/curry/chain.mdx index 64516f32..58317d16 100644 --- a/docs/curry/chain.mdx +++ b/docs/curry/chain.mdx @@ -39,10 +39,7 @@ const gods: Deity[] = [ const getName = (god: Deity) => god.name const upperCase = (text: string) => text.toUpperCase() as Uppercase -const getUpperName = chain( - getName, - upperCase -) +const getUpperName = chain(getName, upperCase) getUpperName(gods[0]) // => 'RA' gods.map(getUpperName) // => ['RA', 'ZEUS', 'LOKI']