npm.io
0.1.4 • Published 11 years ago

underscore.path

Licence
Version
0.1.4
Deps
1
Vulns
2
Weekly
0
Stars
4

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.