lodash internal baseGet (v3)

raw JSON →
3.7.2 verified Sat Apr 25 auth: no javascript deprecated

This package is an internal module of lodash version 3, specifically the `baseGet` function used for deep property access. It was published as a standalone package for modular consumption but is deprecated and no longer maintained. The current stable version is 3.7.2, part of the lodash v3 line (2015–2016). It should not be used in new projects; instead, use the full lodash library (v4+) or native ES6+ features. The package only supports CommonJS and is not compatible with ESM or lodash v4.

error TypeError: baseGet is not a function
cause Incorrect import pattern (e.g., named import destructuring).
fix
Use const baseGet = require('lodash._baseget');
error Cannot find module 'lodash._baseget'
cause Package not installed or using ESM import syntax.
fix
Run npm install lodash._baseget and use require().
error ReferenceError: require is not defined
cause Using require in an ES module context.
fix
Use import or switch to CommonJS with .js extension.
deprecated This package is deprecated in favor of lodash v4 and will not receive updates.
fix Use lodash.get (v4+) or native optional chaining.
breaking This internal package is tied to lodash v3 API; it does not work with lodash v4 or ES modules.
fix Migrate to lodash v4 and use 'lodash/get' or 'lodash.set'.
gotcha The path argument must be an array; strings are not supported directly.
fix Always pass an array of keys/indices as the second argument.
deprecated This package uses the old lodash modular build system; there is no TypeScript support.
fix Use lodash v4 with @types/lodash for TypeScript projects.
npm install lodash._baseget
yarn add lodash._baseget
pnpm add lodash._baseget

Demonstrates deep property access using baseGet with an array path.

const baseGet = require('lodash._baseget');
const object = { a: [{ b: { c: 3 } }] };
const result = baseGet(object, ['a', '0', 'b', 'c']);
console.log(result); // => 3