UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

20 lines (19 loc) 650 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const baseGet_1 = __importDefault(require("./baseGet")); /** * A specialized version of `baseProperty` which supports deep paths. * * @private * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. */ function basePropertyDeep(path) { return function (object) { return (0, baseGet_1.default)(object, path); }; } exports.default = basePropertyDeep;