| 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; | |
| }); | |
Xet Storage Details
- Size:
- 501 Bytes
- Xet hash:
- 06eb9668804067402a8e17770060e5c9e3dc58c9748e5f16e380e0bb00d399c5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.