inDepth.dev
  • Our Manifesto
Subscribe
Michael Lorton

Michael Lorton

1 post published

throwError is not throw error
javascript

throwError is not throw error

The American poet Edward Estlin Cummings was famous for his eccentric use of spacing and capitalization, to the point that his name is usually styled as e e cummings. I wonder what he would think of an RxJS question that a friend asked me: “Is returning throwError the same as writing ‘throw error’?”

  • Michael Lorton
Michael Lorton Dec 22, 2020 • 3 min read
inDepth.dev © 2023
Powered by Ghost