Package Exports
- underscore-keypath
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (underscore-keypath) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
underscore-keypath
key-path mechanism extensions for underscore
$ npm install underscore-keypathHow to use
var _ = require("underscore-keypath");or you may want to use origianl underscore:
var _ = require("underscore");
require("underscore-keypath"); // it will extend original underscorein this case, please install "underscore" first.
$ npm install underscore underscore-keypathexample
var foo = {
bar : {
name : "Cool!"
}
};
_(foo).valueForKeyPath("bar.name"); // --> "Cool!"see API Document
