Marco PestrinHow to subtract objects from an array of objects by id in JavascriptConsidering the case of wanting to add data to the database but without having duplicates.1 min read·Sep 29, 2022----
Marco PestrinJoi Validation in Javascript— How to translate the errorsI found a good way to translate errors that return Joi validator. It was a little bit hard to understand by docs so I opened an issue on…2 min read·Mar 3, 2021----
Marco PestrinPartial and complete validation of the form with Joi on ReactRecently I started using Joi to validate forms on my React application.1 min read·Feb 27, 2021----
Marco PestrinField validator with delay of Material UI input — ReactJS / JavascriptThe goal is to have a runtime validation of Material UI Component‘s input with a third part library (Validator).1 min read·Feb 6, 2021----
Marco PestrinHow to swap 2 variables in javascriptNormally to swap two variables you need a temporary variable because when the first variable is reassigned you lose the value.1 min read·Jan 12, 2021----
Marco PestrinHow to get the common values of an indefinite number of arrays in JavascriptSome days ago I needed to write an algorithm in javascript to get the common values of an indefinite number of arrays.1 min read·Dec 24, 2020----
Marco PestrinTypeof array is an object in javascriptOften there is a need to compare variable types in javascript1 min read·Dec 8, 2020--1--1
Marco PestrinHow to compare two arrays in javascript?Some days ago I needed to compare two arrays in javascript and trivially I tried to compare as strings1 min read·Nov 29, 2020----
Marco PestrinFactfulness: dieci ragioni per cui non capiamo il mondo.Qui di seguito un riassunto del libro scritto da Hans Rosling7 min read·Nov 18, 2020--1--1
Marco PestrinMantenere sempre attiva la retroilluminazione della tastiera nei portatili Windows e LinuxRiavviare il notebook. Quindi premere ripetutamente il tasto F10 dalla tastiera per accedere alle impostazioni del BIOS.1 min read·Nov 17, 2020----