UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

14 lines (13 loc) 535 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.get = void 0; const baseGet_1 = __importDefault(require("./.internal/baseGet")); function get(object, path, defaultValue) { const result = object == null ? undefined : (0, baseGet_1.default)(object, path); return result === undefined ? defaultValue : result; } exports.get = get; exports.default = get;