Recently, in a project, we had to extract the values from a large collection of objects and, while the easiest way to do so was to use the native Object.values()method, which returns an array of a given object’s own enumerable property values, we noticed some performance issues. So, we started measuring the performance of this method compared to some other…
javascript
JavaScript, and the tools around it, have advanced a lot during the last couple of years. So, below you will see few tips and tricks that I find useful in my day-to-day development workflow, in regards to console logging. 01. Custom Css Styling in your console log statements You can add custom styling to your log statements using the %c attribute….
If you are into developing using node you might end up with a lot of dependencies installed in your machine that might be outdated and finding what to update might be quite tricky. npm-check comes to help as a package that checks for outdated, incorrect, and unused dependencies allowing you to update them easily. So for example if you want to upgrade…
In cases you want to display a more personalized avatar for a user that hasn’t uploaded any image to his profile, Canvas might help you through its toDataURI() function. So, let’s see what this method is all about. The HTMLCanvasElement.toDataURL() method returns a data URIs containing a representation of the image in the format specified by the type parameter (defaults to…