ES6 Javascript Arrow functions

ES6 Arrow functions

Arrow functions are a new ES6 Javascript feature to write more readable and shorter code, with the same results. It came with another new feature like the “let/const” renaming from the ES5 “var”. It may seem very similar to the anonymous functions of ES5 but with some small differences. A […]

Read More…

Javascript object to query string

js object to querystring

It can often be useful to transform a javascript object into a query string dynamically, without necessarily knowing the properties of that object. Another good reason is to avoid concatenation for each individual parameter. This method can be used also in javascript/typescript frameworks like: Angular, React, Svelte, etc. This is […]

Read More…

Compare 2 or more JS arrays

Compare 2 or more arrays

Sometimes can be useful an efficient way to compare more JS arrays of objects or primitives. In these cases, the simple comparison operator is not enough because arrays are two different instances of objects. We have to compare JS arrays that are lists and not simple objects. Manipulating data often […]

Read More…

Obscure sensible data – Javascript

Obscure sensible datas

Something we can have the request to obscure sensible data for hiding purposes of information.Pay attention that this is not a security prone method to hide sensible informations because someone can search on network requests and response and find what you’re trying to hide. We should do a true shadowing […]

Read More…