Skip to content

change parameters to correct order at practice 14 #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/exercises/14/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ typeAssert<IsTypeEqual<typeof subtractResult1, number>>();
const subtractResult2 = subtract(2, 1);
typeAssert<IsTypeEqual<typeof subtractResult2, number>>();

const propResult1 = prop()('x')()({x: 1, y: 'Hello'});
const propResult1 = prop()({x: 1, y: 'Hello'})()('x');
typeAssert<IsTypeEqual<typeof propResult1, number>>();

const propResult2 = prop('y', {x: 1, y: 'Hello'});
const propResult2 = prop({x: 1, y: 'Hello'}, 'y');
typeAssert<IsTypeEqual<typeof propResult2, string>>();

const pipeResult1 = pipe(filter(Boolean), map(String), reduce((a: string, b: string) => a + b, ''))([0, 1, 2, 3]);
Expand Down