Skip to content

Underscore helper for accessing nested properties using string paths

License

Notifications You must be signed in to change notification settings

mateusmaso/underscore.path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.