Become a member
Sign in
Igor Soares Alves
Igor Soares Alves

Igor Soares Alves

1 Following
1 Followers
  • Profile

  • Claps

  • Highlights

Highlighted by Igor Soares Alves

See more

From Rethinking JavaScript: Eliminate the switch statement for better code by Joel Thoms

const counter = (state = 0, action) =>
switchcase({
'INCREMENT': state + 1,
'DECREMENT': state -1
})(state)(action.type)

From Rethinking JavaScript: Eliminate the switch statement for better code by Joel Thoms

const counter = (state = 0, action) =>
switchcase({
'INCREMENT': state + 1,
'DECREMENT': state -1
})(state)(action.type)

Claps from Igor Soares Alves

See more

Pode-se notar que o autor sofreu de um derrame quando começou a redigir o texto

Matheus Mdc

Só pode ser brincadeira esse texto.

Otávio Medeiros