Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rxjs vs Lodash ? can rxjs be an alternative for lodash?

I know definition and duty of both rxjs and lodash, but I want to know: can I throw out lodash when I use rxjs in my project? because rxjs can works synchronously and asynchronously (async and sync data). I think it can be an alternative for lodash. Am I right?

like image 904
ali hasani Avatar asked Dec 30 '18 17:12

ali hasani


1 Answers

It depends on what you do. Some tasks can be achieved by both, but many tasks can only be achieved by one of the two. RxJS is not an alternative to Lodash.

Note that they have completely different missions:

  • Lodash makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc.
  • RxJS is a library for reactive programming using Observables, to make it easier to compose asynchronous or callback-based code.
like image 140
Nino Filiu Avatar answered Oct 08 '22 13:10

Nino Filiu