MCPcopy Create free account
hub / github.com/Lemoncode/fonk / get

Function get

src/helpers/get.js:956–959  ·  view source on GitHub ↗

* Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get.

(object, path, defaultValue)

Source from the content-addressed store, hash-verified

954 * // => 'default'
955 */
956function get(object, path, defaultValue) {
957 const result = object == null ? undefined : baseGet(object, path);
958 return result === undefined ? defaultValue : result;
959}
960
961module.exports = get;

Callers 3

FormValidationClass · 0.90
parseMessageFunction · 0.90
fireAllFieldsValidationsFunction · 0.90

Calls 1

baseGetFunction · 0.85

Tested by

no test coverage detected