O
O
OlyaSoz2019-06-16 02:50:13
JavaScript
OlyaSoz, 2019-06-16 02:50:13

How can you refactor?

There is such a code in the Angular service.
5d0583abcc0bb118869454.png
Here's what's in the .ts file
5d0584eb9aa47133267703.png
AND MongoDB
5d058415a72d9761708266.png
I think it's possible to somehow shorten and improve this, but due to lack of experience I don't know how.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question