Skip to content

Author: admin@master

Detect click outside element

How can I detect a click outside my element? I’m using Vue.js so it’s gonna be outside my templates element. I know how to do it in Vanilla JS, but I’m not sure if there’s a more proper way to do it, when I’m using Vue.js? This is the solution for Vanilla JS: Javascript Detect Cl…

React Native Linking SMS

Now that RN supports Linking cross-platform, I am wondering how to send an SMS with a preset message. Per the docs (https://facebook.github.io/react-native/docs/linking.html#content): Try to open the given url with any of the installed apps. You can use other URLs, like a location (e.g. “geo:37.484847,-…

Convert number to alphabet letter

I want to convert a number to its corresponding alphabet letter. For example: Can this be done in javascript without manually creating the array? In php there is a range() function that creates the array automatically. Anything similar in javascript? Answer Yes, with Number#toString(36) and an adjustment.