Open in app

Sign In

Write

Sign In

Samantha Ming
Samantha Ming

7.1K Followers

Home

About

Published in Vue.js Developers

·Oct 20, 2020

How to use Lodash with Vue

Lodash is a JavaScript library that is packed with a bunch of goodies 🍬. Unlike Halloween goodies that means you have to do laps around your neighborhood to burn those extra calories. …

Vuejs

5 min read

How to use Lodash with Vue
How to use Lodash with Vue
Vuejs

5 min read


Published in JavaScript in Plain English

·Oct 7, 2020

Testing Non-Exported Functions in JavaScript

Recently, I finally integrated unit testing into my startup project. I’ve settled with Jest, I’ll speak more about this in a separate journal entry. While writing my test, I ran into a bit of a dilemma of trying to write unit tests for non-exported functions 😖 Testing Exported Function It’s super straightforward to…

JavaScript

5 min read

Testing Non-Exported Functions in JavaScript
Testing Non-Exported Functions in JavaScript
JavaScript

5 min read


Oct 2, 2020

Journal Entry #1: Taking Action!

Welcome to my first journal entry 👋 So excited for this new series! Unlike my blog posts, this will be an unfiltered and unpolished glimpse of my journey in tech. I’ll be sharing things I’m learning along the way, my thoughts as I navigate my career, and definitely the mistakes…

Startup

4 min read

Journal #1: Taking Action
Journal #1: Taking Action
Startup

4 min read


Aug 17, 2020

HTML abbr Tag

Semantic HTML is a great way to convey meaning of your page. Mark up abbreviated content with the <abbr> tag. And when you pass a title, it will create a tooltip when hovered over. Nice! 👏 <abbr title="Today I learned">TIL</abbr> something awesome! Table of Content − Default Styling − Styling abbr Tag − Battle between…

HTML

6 min read

HTML abbr Tag
HTML abbr Tag
HTML

6 min read


Published in DailyJS

·Aug 12, 2020

String Pad in JavaScript

It’s super easy to pad a string! Just pass in your desired string and length. The string will be padded until the length has been met. Use padStart to apply it at the start and padEnd to apply it at the end 🎀 const string = 'hi'; string.padStart(3, 'c'); //…

JavaScript

4 min read

String Pad in JavaScript
String Pad in JavaScript
JavaScript

4 min read


Published in Vue.js Developers

·Aug 5, 2020

How to avoid empty class in Vue with null

Instead of passing an empty string, which can lead to an empty class in the DOM output. In your ternary operator, you can return “null”. This will ensure no empty class in the DOM 🌟 <!-- ❌ --> <div :class="isBold ? 'bold' : ''"> <!-- <div class> --> <!-- ✅…

Vuejs

4 min read

How to avoid empty class in Vue with null
How to avoid empty class in Vue with null
Vuejs

4 min read


Published in DailyJS

·Jul 28, 2020

4 Ways to Combine Strings in JavaScript

Here are four ways to combine strings in JavaScript. My favorite way is using Template Strings. Why? Because it’s more readable, no backslash to escape quotes, no awkward empty space separator, and no more messy plus operators 👏 const icon = '👋'; // Template Strings `hi ${icon}`; // join() Method ['hi'…

JavaScript

6 min read

4 Ways to Combine Strings in JavaScript
4 Ways to Combine Strings in JavaScript
JavaScript

6 min read


Published in Prototypr

·Jul 21, 2020

Fix Text Overlap with CSS white-space

Sometimes nowrap is helpful when you don't want the text to break in an awkward spot 🔗 However, nowrap can sometimes lead to overlapping text. You can easily fix it by setting the white-space to be normal 👍 div { white-space: nowrap; }

CSS

5 min read

Fix Text Overlap with CSS white-space
Fix Text Overlap with CSS white-space
CSS

5 min read


Jul 15, 2020

How to Check if Object is Empty in JavaScript

Here’s a Code Recipe to check if an object is empty or not. For newer browsers, you can use plain vanilla JS and use the new “Object.keys” 🍦 But for older browser support, you can install the Lodash library and use their “isEmpty” method 🤖 const empty = {}; /*…

JavaScript

5 min read

How to Check if Object is Empty in JavaScript
How to Check if Object is Empty in JavaScript
JavaScript

5 min read


Published in Vue.js Developers

·Jul 8, 2020

Vue Named Slot Shorthand

Say hi to the first Vue tidbit 👋 It’s about time I start covering Vue in my code tidbits, right 😉‬ Use the new named slot shorthand with “#”. This is available now in Vue 2.6.0+ 👍 <!-- Old --> <template v-slot:content> <!-- New --> <template #content> Vue, hands down…

Vuejs

4 min read

Vue Named Slot Shorthand
Vue Named Slot Shorthand
Vuejs

4 min read

Samantha Ming

Samantha Ming

7.1K Followers

Frontend Developer sharing weekly JS, HTML, CSS code tidbits🔥 Discover them all on samanthaming.com 💛

Following
  • Eric Elliott

    Eric Elliott

  • Jennifer Bland

    Jennifer Bland

  • MacKenzie Scott

    MacKenzie Scott

  • Claire Lew

    Claire Lew

  • Lily Ho

    Lily Ho

See all (20)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech