Skip to content

NarHakobyan/underscore.get

Repository files navigation

##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);

Or globally

*Note: this does not bundle underscore and must be included in your index.html after the underscore library.

##Don't forget to star the github repository!

About

Dot notation get function for underscore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published