From c70a0ea6c5fa68ff52bdb540a1de0203d82b70b0 Mon Sep 17 00:00:00 2001 From: piczhanf Date: Tue, 27 Feb 2024 06:50:25 +0800 Subject: [PATCH] change parameters to correct order at practice 14 --- src/exercises/14/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exercises/14/test.ts b/src/exercises/14/test.ts index c98442f1..e6cf1ff3 100644 --- a/src/exercises/14/test.ts +++ b/src/exercises/14/test.ts @@ -37,10 +37,10 @@ typeAssert>(); const subtractResult2 = subtract(2, 1); typeAssert>(); -const propResult1 = prop()('x')()({x: 1, y: 'Hello'}); +const propResult1 = prop()({x: 1, y: 'Hello'})()('x'); typeAssert>(); -const propResult2 = prop('y', {x: 1, y: 'Hello'}); +const propResult2 = prop({x: 1, y: 'Hello'}, 'y'); typeAssert>(); const pipeResult1 = pipe(filter(Boolean), map(String), reduce((a: string, b: string) => a + b, ''))([0, 1, 2, 3]); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy