Some custom mixins for underscore

I recently published several of the more useful underscore mixins in my development toolkit over to a gist for public consumption. In addition to _.idle, the list (so far) includes:

  • _.lookup, a helper for retrieving properties from a nested object based on the key given by a delimited string
  • _.assign, a helper for assigning properties to a nested object based on a delimited string
  • _.filterBy, a helper for filtering object arrays based on a nested property (uses _.lookup)

Though none of these are quite ubiquitous enough to earn their own pull requests, they’ve proven quite useful in their own rights for wrangling data tied up in either raw javascript objects or any kind of nested model).

Take them, fork them, tweak them as you will. I’ll keep the list updated at none-too-regular intervals on github.

Let’s keep in touch

Reach out on Twitter or subscribe for (very) occasional updates.

Hey, I'm RJ: digital entomologist and intermittent micropoet, writing from the beautiful Rose City.