Conditional creating new objects with spread operator

original is blog posted I am lazy and I am not shy of it. Today I refactor some vuex (state manager) modul called Search. Yes, it handles search stuff from application. But what is interesting, it uses 2 endpoints for search (because of server API). One use searchText in query parameter (https://localhost:5000/items?searchText=valueInSearchText) but second in route parameter (https://localhost:5000/items/valueInSearchText).


Toto je sprievodná diskusia k pôvodnej téme na https://blog.vyvojari.dev/conditional-creating-new-objects-with-spread-operator/