mateusmaso / underscore.path

Underscore helper for accessing nested properties using string paths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Underscore helper for accessing nested properties using string paths

License:MIT License


Languages

Language:JavaScript 100.0%