flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
14
VISUALIZACION/node_modules/underscore/amd/get.js
generated
vendored
Executable file
14
VISUALIZACION/node_modules/underscore/amd/get.js
generated
vendored
Executable 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;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue