tahamajs's picture
download
raw
518 Bytes
var _toPath = require('./_toPath.js');
var _deepGet = require('./_deepGet.js');
var isUndefined = require('./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`.
function get(object, path, defaultValue) {
var value = _deepGet(object, _toPath(path));
return isUndefined(value) ? defaultValue : value;
}
module.exports = get;

Xet Storage Details

Size:
518 Bytes
·
Xet hash:
9d675492b2c91c33f85d21c944db2227f8db14d66c8b17e2997693552165f4ec

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.