Tag: JavaScript

Mangular.js

I recently started having a look at AngularJS to replace HTML + jQuery spaghetti code, and it is pretty neat. I looked at the todo example on the main website and as simple as it may be, I do think

Share Button
Posted in Blog Tagged with: , ,

Mangler.js javascript aggregators

Mangler.js‘ new .aggregate() function helps you do calculations on sets of values with the least amount of coding. Syntax As usual, it comes in two flavours: as a static utility function or as a Mangler object method: Parameters: collection: Any

Share Button
Posted in Blog Tagged with: ,

Mangler.js transform, deflate and inflate

It is time for some new features, fixes and breaking changes to my Mangler.js object processing library. As I started using it in my projects myself and it seems pretty stable, it might even see an official release soon. Transform

Share Button
Posted in Blog Tagged with: ,

Querying and filtering JavaScript objects and arrays

Another powerful feature of Mangler.js is checking if an object or value satisfies a test expression. A test expression is a javascript object literal with special properties, very similar to and inspired by MongoDB‘s .find() method. Using test expressions, there

Share Button
Posted in Blog Tagged with: ,

Redesigning Mangler.js type handling

Mangler.js‘s type handling has undergone a major redesign which retired the flawed Mangler.getType() function and changed the type parameter on Mangler.registerType(). With the recent changes the library now supports code minification, objects built from anonymous constructors and constructors with the

Share Button
Posted in Blog Tagged with: , ,

Iterating through JavaScript objects and arrays

In this article we’ll have a look at how to iterate through javascript objects and arrays with Mangler.js. I’ll also show you how to make your own objects iterable, and how it enhances other powerful features of the library. Iterating

Share Button
Posted in Blog Tagged with: ,

Cloning JavaScript objects with Mangler.js

I was pretty busy lately watching all 5 seasons of Breaking Bad, but there were still quite a few improvements to Mangler.js since my last post. With many features taking final shape, it is time to write some posts focusing

Share Button
Posted in Blog Tagged with: ,

Introducing Mangler.js

Mangler.js is a JavaScript object processing library that helps you transform, restructure, query, index and extract parts of your objects and JSON data. It is open source under GPLv3. As I often work with bespoke applications where requirements change regularly,

Share Button
Posted in Blog Tagged with: , , , ,