Isak Berglind

Isak Berglind

Posts about Javascript

June 6, 2019

Publish a Vue component to npm

The other day, I wanted to publish a component I had made to npm. I thought to myself - This can't be that hard? There are literary hundreds of Vue components and plugins out there already. This must...

Read

February 10, 2019

Logical or || in php vs javascript

Comming from php, I noticed something in javascript that I found pretty wierd - how the the logical or operator || behaves. In php, the expressions on boths sides of the or operator is being casted...

Read

May 31, 2018

Differentiate Laravel collection methods

Laravel collections is one of my favorite features of Laravel. I use them about every time I need to loop through something or deal with arrays. Some methods are quite similar to each other, though,...

Read

April 23, 2018

Translate content on the front end

A multilingual site comes with a few more challenges than a normal single language site. One of those challenges is how to provide the translated strings to your frontend framework. How to approach...

Read