
How to use Lodash with Vue
Lodash is a JavaScript library that is packed with a bunch of goodies 🍬. Unlike Halloween goodies t...

Author profile
Frontend Developer sharing weekly JS, HTML, CSS code tidbits 🔥Discover them all on samanthaming.com 💛
Browse the latest writing surfaced through DevArt.

Lodash is a JavaScript library that is packed with a bunch of goodies 🍬. Unlike Halloween goodies t...

Recently, I finally integrated unit testing into my startup project. I've settled with Jest, I'll s...

Welcome to my first journal entry 👋 So excited for this new series! Unlike my blog posts, this will b...

It's super easy to pad a string! Just pass in your desired string and length. The string will be pa...

Instead of passing an empty string, which can lead to an empty class in the DOM output. In your ter...

Here are 4 ways to combine strings in JavaScript. My favorite way is using Template Strings. Why? B...

Sometimes nowrap is helpful when you don't want the text to break in an awkward spot 🔗 However, no...

Here's a Code Recipe to check if an object is empty or not. For newer browsers, you can use plain v...

Say hi to the first Vue tidbit 👋 It’s about time I start covering Vue in my code tidbits, right 😉...

Here are 6 ways to use the Spread operator with Array in JavaScript. You can use it to merge or clo...

We got Object.entries() which converts an object → array. But what if you want to do the reverse? W...

When I say ES6 Classes, you might go YAY 🎊 JS finally introduced a new object-oriented inheritance...

Here's a Code Recipe to check whether a variable or value is either an array or not. You can use th...

This is a 2 part series where I talk about the two main tech I used to build my new website, samant...

Here are 5 ways to add an item to the end of an array. push, splice, and length will mutate the ori...

Looking for a site's URL information, then the window.location object is for you! Use its propertie...

It's super simple to remove whitespace from a string. To remove just the leading whitespace, you ca...

Determining the sign of a number is super easy now with ES6's Math.sign 👏 It will indicate whether...

Extract Functions Arguments using Destructure in JavaScript ES6 Destructuring is terrifi...

Here are 4 ways to split a word into an array of characters. "Split" is the most common and more ro...

Super simple to add and play audio files on your site. No more fussing with embedding a Flash file...

Here's a Code Recipe to check if a #JavaScript array contains a value. You can use the new array in...

You can use blanks to skip over unwanted values 🤓 This way you can avoid useless variable assignme...

My favorite is using !!. It’s also the recommended method by Airbnb's JavaScript style guide 👍 Bo...

Move over Sass, we have #CSS variables! I still love Sass of course. But it’s great native CSS supp...

What's new in 2.0 I added a lot of cool features to the new site. Honestly, a lot of it...

Super simple to set Default Parameters with ES6 👏 The old way was to use a ternary operator to ass...

I'm so happy to finally launch my new website! In terms of the tech stack, I stayed within my favor...

You learned how Array.flat() flattens an array in my previous tidbit. Now lets up the game and intr...

Here's a cheat sheet to show you the different ways of exporting and the corresponding way to impor...
Advertisement