Skip to content

Commit

Permalink
hotfix 함수 자신이 정의할수있도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Hansanghyeon authored Nov 23, 2023
1 parent f7f8305 commit bd3b9f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/example/src/2week/compose/compose.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ import { compose } from './compose'

describe('pop', () => {
it('더하기 함수와 곱하기합수를 합성했습니다.', () => {
function add(a: number, b: number) {
return a + b
}
function multiply(a: number, b: number) {
return a * b
}
// add함수!
// multiply함수!
const result = compose(4, add(7), multiply(5))
assert(result).toBe(55)
})
Expand Down

0 comments on commit bd3b9f5

Please sign in to comment.