This package provides the internal `baseAssign` function from Lodash version 3.2.0, exporting it as a CommonJS module. `baseAssign` is a low-level utility responsible for shallowly assigning enumerable own properties from source objects to a destination object, serving as a building block for higher-level Lodash methods like `_.assign`. Published in 2015, this specific package is tied to an end-of-life major version of Lodash (v3.x, supported until January 2016). While Lodash (currently v4.x) remains actively maintained with a continuous release cadence, this individual internal module is not independently updated. Modern best practices for consuming Lodash functions involve importing directly from the main `lodash` package (e.g., `require('lodash/assign')` or `import assign from 'lodash/assign'`) or utilizing `lodash-es` with tree-shaking bundlers to optimize bundle size. Per-method packages like this one are discouraged and are slated for removal in Lodash v5.
npm install lodash._baseassignVerified import paths — ran on the pinned version, not inferred.
This code demonstrates how to `require` and use the `baseAssign` function for shallow property assignment. It also highlights that `baseAssign` is an internal, low-level utility, contrasting its usage with the public `_.assign` method from the main Lodash library.
Migrate to Lodash v4.x by installing `lodash` (the main package). Use `require('lodash/assign')` or `import assign from 'lodash/assign'` instead of `lodash._baseassign`. Consult the Lodash v3 to v4 migration guide.Use specific methods directly from the main `lodash` package (e.g., `require('lodash/assign')` for CommonJS or `import assign from 'lodash/assign'` for ESM with `lodash-es`) or use bundler plugins (like `babel-plugin-lodash`) for optimized builds.In CommonJS environments, use `const baseAssign = require('lodash._baseassign');`. For ES module environments, you will need to rely on a CommonJS interop layer or, preferably, use `lodash-es` or `lodash/assign` from the main `lodash` package.Upgrade to the latest stable version of the main `lodash` package (currently v4.x) to ensure you receive critical security updates.
For CommonJS, use `const baseAssign = require('lodash._baseassign');`. For ESM, you must use a CommonJS interop layer or, better yet, migrate to `import assign from 'lodash/assign'` from the main `lodash` package.`baseAssign` is a utility function and should be called directly, e.g., `baseAssign({}, source)`.No dependency data recorded yet.