{"library":"lodash.pluck","title":"lodash.pluck module","description":"lodash.pluck is a specialized npm package that provides the `_.pluck` utility function, originally part of the comprehensive Lodash library, as a standalone CommonJS module. It is currently at version 3.1.2, which aligns with Lodash v3. The main Lodash library has since moved to version 4.x, and the `_.pluck` function itself was deprecated in Lodash v4 (released 2015) in favor of using `_.map` with property shorthands. This package's release cadence is effectively dormant, mirroring the deprecation of its core functionality within the broader Lodash ecosystem, with no updates in many years. Its primary differentiator was to allow developers to include only this specific utility without the full Lodash bundle, suitable for older environments or for maintaining legacy codebases where `_.pluck` was explicitly used.","language":"javascript","status":"deprecated","last_verified":"Sun Apr 19","install":{"commands":["npm install lodash.pluck"],"cli":null},"imports":["const pluck = require('lodash.pluck');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const pluck = require('lodash.pluck');\n\nconst users = [\n  { user: 'barney', age: 36, active: true },\n  { user: 'fred', age: 40, active: false },\n  { user: 'pebbles', age: 1, active: true }\n];\n\n// Using lodash.pluck to extract an array of 'user' names\nconst userNames = pluck(users, 'user');\nconsole.log('User names:', userNames);\n// Expected output: ['barney', 'fred', 'pebbles']\n\n// Using lodash.pluck to extract an array of 'age' values\nconst ages = pluck(users, 'age');\nconsole.log('Ages:', ages);\n// Expected output: [36, 40, 1]\n","lang":"javascript","description":"Demonstrates how to import `lodash.pluck` using CommonJS and use it to extract property values from an array of objects.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}