Cristian Salcescu's Blog, page 15
March 8, 2021
How to Transform Lists into Map Objects
It may happen that you need to convert an array of objects into mapping literals or vice versa. In this post, we will look at how to do…
March 7, 2021
How to Transform Arrays and Objects into Maps
In this article, we will look at how to create maps from arrays and objects and vice-versa.
How to Create a Clock Component with Svelte
In this post, we will build a component in Svelte displaying the current time.
March 6, 2021
How to Sort Arrays
In this article, we will take a look at how to the sort method to sort arrays of numbers, string, and objects.
Essential things on undefined and null
In this article, we will take a look at some common things you should on the null and undefined values.
March 3, 2021
Can You Do the Union, Intersection, and Difference of Arrays Exercises
Solve the following challenges using functional programming techniques.
How to Build the Todo App with Svelte
In this article, we are going to learn how to create and communicate between components in Svelete by building a mini Todo application.
March 2, 2021
How to Do a Fetch Inside React Components
In this post, we are going to look at how to make a fetch request inside a React function component and how to handle the three possible…
UI State Management
From Object-Oriented to Functional

Nowadays state management has become a common challenge when developing web applications. The time when we directly changed the UI for display data is long gone. All major UI libraries come with a new approach, changing the UI means actually changing the state.
The obvious question now is what state actually is.
State is data basically.
Is any data used in the application state?
The answer is “No”. Only the data that is stored becomes state. If the data doesn’t chan...
March 1, 2021
How to Remove Duplicates from Arrays
In this article, we are going to look at how to remove duplicates from an array. We will analyze two kinds of values: primitives and…