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.Sep 29, 2022Sep 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…Mar 3, 20211Mar 3, 20211
Marco PestrinPartial and complete validation of the form with Joi on ReactRecently I started using Joi to validate forms on my React application.Feb 27, 2021Feb 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).Feb 6, 2021Feb 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.Jan 12, 2021Jan 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.Dec 24, 2020Dec 24, 2020
Marco PestrinTypeof array is an object in javascriptOften there is a need to compare variable types in javascriptDec 8, 20201Dec 8, 20201
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 stringsNov 29, 2020Nov 29, 2020
Marco PestrinFactfulness: dieci ragioni per cui non capiamo il mondo.Qui di seguito un riassunto del libro scritto da Hans RoslingNov 18, 20201Nov 18, 20201
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.Nov 17, 2020Nov 17, 2020