underscore.path

Underscore helper for accessing nested properties using string paths

MIT License

Downloads
10
Stars
4
Committers
1

underscore.path Build Status

This library is an extension for Underscore which allows accessing nested properties using a string path.

Features

  • Access nested properties.

Dependencies

  • underscore.js (>= 1.5.0)

Node

var _ = require('underscore');
_.mixin(require('underscore.path'));

Examples

var object = {foo: {bar: 123}};
_.path(object, "foo.bar");

License

Copyright (c) 2014 Mateus Maso. Released under an MIT license.

Package Rankings
Top 13.05% on Npmjs.org
Badges
Extracted from project README
Build Status