{"library":"lodash._arraycopy","title":"Lodash Internal Array Copy Utility","description":"lodash._arraycopy is a standalone npm package that provides the internal `arrayCopy` utility function from the Lodash library as a modularized component. This package was last updated with version 3.0.0, released in 2015, following semantic versioning practices for its specific release cycle. While the core `arrayCopy` functionality remains integral and actively maintained within the main Lodash library (which is currently at v4.x and receives regular updates and security patches), the `lodash._arraycopy` *npm package itself* is not independently maintained or updated. Its primary purpose was to expose an internal helper for environments that required modular consumption of Lodash's foundational utilities. For modern JavaScript projects, it is strongly recommended to use the comprehensive `lodash` or `lodash-es` packages, which encapsulate and maintain this functionality as part of a larger, actively developed codebase, rather than relying on this outdated standalone module.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install lodash._arraycopy"],"cli":null},"imports":["const arrayCopy = require('lodash._arraycopy');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const arrayCopy = require('lodash._arraycopy');\n\nconst sourceArray = [1, 2, 3, 4, 5];\nconst destinationArray = new Array(sourceArray.length);\nconst sourceStart = 0;\nconst destinationStart = 0;\nconst length = sourceArray.length;\n\n// Copies elements from sourceArray to destinationArray\narrayCopy(sourceArray, destinationArray, destinationStart, sourceStart, length);\n\nconsole.log(destinationArray); // Expected: [1, 2, 3, 4, 5]\n\nconst anotherSource = ['a', 'b', 'c'];\nconst anotherDest = ['x', 'y', 'z', 'w'];\n// Copy 'b', 'c' from anotherSource to anotherDest starting at index 1 of anotherDest\n// anotherDest becomes ['x', 'b', 'c', 'w']\narrayCopy(anotherSource, anotherDest, 1, 1, 2);\nconsole.log(anotherDest); // Expected: ['x', 'b', 'c', 'w']","lang":"javascript","description":"Demonstrates how to import and use the `arrayCopy` function to copy elements between arrays.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}