diff --git a/docs/curry/chain.mdx b/docs/curry/chain.mdx index 3e27f540..58317d16 100644 --- a/docs/curry/chain.mdx +++ b/docs/curry/chain.mdx @@ -36,13 +36,10 @@ const gods: Deity[] = [ { rank: 9, name: 'Loki' } ] -const getName = (god: Deity) => item.name +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']