Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
14
node_modules/underscore/amd/get.js
generated
vendored
Normal file
14
node_modules/underscore/amd/get.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
define(['./_toPath', './_deepGet', './isUndefined'], function (_toPath, _deepGet, isUndefined) {
|
||||
|
||||
// Get the value of the (deep) property on `path` from `object`.
|
||||
// If any property in `path` does not exist or if the value is
|
||||
// `undefined`, return `defaultValue` instead.
|
||||
// The `path` is normalized through `_.toPath`.
|
||||
function get(object, path, defaultValue) {
|
||||
var value = _deepGet(object, _toPath(path));
|
||||
return isUndefined(value) ? defaultValue : value;
|
||||
}
|
||||
|
||||
return get;
|
||||
|
||||
});
|
Reference in New Issue
Block a user