| import toPath from './_toPath.js'; | |
| import deepGet from './_deepGet.js'; | |
| import isUndefined from './isUndefined.js'; | |
| // 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`. | |
| export default function get(object, path, defaultValue) { | |
| var value = deepGet(object, toPath(path)); | |
| return isUndefined(value) ? defaultValue : value; | |
| } | |
Xet Storage Details
- Size:
- 497 Bytes
- Xet hash:
- 95be09eadce7a0241fc8f37e2a3bd797785a56f212f75bd24fc1d1a6bbc4dc97
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.