JavaScript


📖 Kb | 📎 Development | 🔖 JavaScript, ECMAscript

How to reliably detect the object type of a JavaScript variable?

The nature of JavaScript means that everything is treated as an object (sort of). It can be remarkably hard to reliably detect what type of object something is and there isn’t a single function in JavaScript that can be used in all cases. So how do we do it? Here are some options


📖 Kb | 📎 Development | 🔖 Node-RED, Node.JS, JavaScript

Creating a notification in the Admin UI

Node-RED’s admin UI has a built-in notification (toast) pop-up message feature. This article explains how to use it when creating custom nodes as it isn’t currently well documented.


📖 Kb | 📎 Development | 🔖 Node-RED, npm, Node.JS, JavaScript, Debugging

Cleaning up npm package install problems

Node-RED uses npm to manage package installations such as its nodes. Sometimes, you can get into a situation where you start getting lots of npm installation or removal issues and it feels like you are going round in circles trying to fix things. If so, time to call it a day and to get drastic! Here, I try to explain an easy way to fix things quickly and completely without side effects.


📖 Kb | 📎 Development | 🔖 Node-RED, Node.JS, JavaScript, Debugging, Performance

Analysing the Performance of Node-RED

Node-RED is a powerful platform for prototyping and rapid development but it is complex. It has a lot of moving parts and it can be hard to know what might be causing performance bottlenecks. This article tries to give some hints and tips about analysing those bottlenecks and how to resolve them.


📖 Kb | 📎 Development | 🔖 JavaScript, ECMAscript

How to take control of JavaScript console output

All browsers have the console object that lets you output to the developer console log. But in production, you don’t want this output, only in development. So here is the easiest way I’ve found to take control.


📖 Kb | 📎 Development | 🔖 JavaScript, ECMAscript, node.js, nodejs

What JavaScript versions are there and how do they map to Node.JS versions?

There are now far too many versions of JavaScript. Worse, there are several ways to refer to a JavaScript version. Then we have Node.JS which has its own versioning. This post tries to summarise it all.


📖 Kb | 📎 Development | 🔖 JavaScript, ECMAscript

How to loop over JavaScript arrays and objects

JavaScript can be a pain at times. Loops are a fundamental part of all computer languages but in JavaScript, there are some oddities. This post is a summary of the different loop features and when to use them. It is likely to be updated from time-to-time as the standards are still changing.

🕑
📖 Kb | 📎 Development | 🔖 node.js, nodejs, JavaScript, ECMAscript

Download a GitHub Repository using Node.JS

Downloading a repository from GitHub using Node.JS should be really easy. But it isn’t! This KB post reminds us of the tricks required.

🕑
📖 Kb | 📎 Development | 🔖 JavaScript, ECMAscript

How to walk through a JavaScript object in sort order

Using a JavaScript object like a keyed array, what is the simplest way to walk through the object?


📖 Kb | 📎 Development | 🔖 JavaScript, ECMAscript

How to get the properties of a JavaScript object without errors

You cannot natively request chained properties of a JavaScript object without the possibility of an error. This utility function allows you to get any properties, no matter how they are nested.


📖 Kb | 📎 Development | 🔖 node.js, nodejs, JavaScript, ECMAscript

Node.JS and JavaScript

Node.JS allows JavaScript to be used as a server-side (back-end) programming language.


📖 Posts | 📎 Development, Diigo | 🔖 Bookmarklet, JavaScript

Diigo Bookmarks 05/12/2011

<p class="diigo-description"> &#8220;Jash is a DHTML-based window that gives you command-line JavaScript access to the current browser window. With this console you can quickly debug scripts, manipulate the DOM, view the current page&#8217;s objects, functions, and variables, execute arbitrary Javascript, enter new CSS (in IE, Firefox, Opera, and Safari), and much more.&#8221; &#8211; A useful tool to execute JavaScript, make live (temporary) CSS changes to a page, discover the page structure, etc.