underscore.get

get data with dot notation

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
underscore.get
610.2.96 years ago6 years agoMinified + gzip package size for underscore.get in KB

Readme

Underscore.get

Usage

For Node.js, Browserify and Webpack

Install from npm
npm install underscore.get
Require individual functions
const {get} = require("underscore.get");

get(obj, 'a[0].b', defaultValue);

Or use Mixin
const getMixin = require("underscore.get");
_.mixin(getMixin);
_.get(obj, 'a[0].b', defaultValue);

Don't forget to star the github repository!