{"id":13835457,"url":"https://github.com/marklagendijk/lodash-deep","last_synced_at":"2025-12-12T04:01:56.760Z","repository":{"id":14322543,"uuid":"17031775","full_name":"marklagendijk/lodash-deep","owner":"marklagendijk","description":"Lodash mixins for (deep) object accessing / manipulation.","archived":false,"fork":false,"pushed_at":"2017-01-05T15:22:08.000Z","size":120,"stargazers_count":222,"open_issues_count":8,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T19:06:06.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marklagendijk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-20T19:00:17.000Z","updated_at":"2024-08-05T09:30:40.000Z","dependencies_parsed_at":"2022-08-31T18:33:40.946Z","dependency_job_id":null,"html_url":"https://github.com/marklagendijk/lodash-deep","commit_stats":null,"previous_names":["marklagendijk/lodash.deep"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marklagendijk%2Flodash-deep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marklagendijk%2Flodash-deep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marklagendijk%2Flodash-deep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marklagendijk%2Flodash-deep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marklagendijk","download_url":"https://codeload.github.com/marklagendijk/lodash-deep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248935717,"owners_count":21185881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T14:01:02.436Z","updated_at":"2025-12-12T04:01:56.421Z","avatar_url":"https://github.com/marklagendijk.png","language":"JavaScript","funding_links":[],"categories":["目录"],"sub_categories":[],"readme":"# lodash-deep \n\u003e Lodash mixins for (deep) object accessing / manipulation.\n\n[![Bower version][bower-image]][bower-url] [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Sauce Test Status][sauce-image]][sauce-url] [![Dependency Status][depstat-image]][depstat-url]\n\n## Version 2.x\nIn 2.0 most of the methods of this module where removed, because Lodash now supports their functionality natively. E.g.:\n\n``` javascript\n_.deepGet(object, 'father.name');\n// -\u003e\n_.get(object, 'father.name');\n\n_.deepPluck(array, 'father.name');\n// -\u003e\n_.map(array, 'father.name');\n```\n\n## Compatibility\nlodash-deep is currently compatible with:\n- Node.js\n- All ES5 compatible browsers (IE9+, Chrome, Firefox, Safari etc)\n\n## Installation\n### Bower\n1. `bower install lodash-deep`\n2. Reference `lodash-deep.min.js` after `lodash.min.js`\n\n### Node.js\n1. `npm install lodash`\n2. `npm install lodash-deep`\n3. \n    ``` javascript\n\n    var _ = require(\"lodash\");\n    _.mixin(require(\"lodash-deep\"));\n    ```\n\n## Docs\nThe following mixins are included in `lodash-deep`:\n- [_.deepMapValues](#_deepmapvaluesobject-propertypath)\n\n### _.deepMapValues(object, propertyPath)\nMaps all values in an object tree and returns a new object with the same structure as the original.\n\n#### object\nType: `Object`\n\nThe root object of the object tree.\n\n#### callback\nType: `Function`\n\nThe function to be called per iteration on any non-object value in the tree.\n\nCallback is invoked with 2 arguments: `(value, path)`.\n\n`value` the value of the current property.\n\n`path` the path of the current property.\n\n#### returns\nType: `Object`\n\n``` javascript\nvar object = {\n    level1: {\n        value: 'value 1'\n        level2: {\n            value: 'value 2'\n            level3: {\n                value: 'value 3'\n            }\n        }\n    }\n};\n\n_.deepMapValues(object, function(value, path){\n    return path + ' is ' + value)\n});\n\n/** -\u003e\n *    {\n *        level1: {\n *            value: 'level1.value is value 1'\n *            level2: {\n *                value: 'level1.level2.value is value 2'\n *                level3: {\n *                    value: 'level1.level2.level3.value is value 3'\n *                }\n *            }\n *        }\n *    };\n */\n```\n\n## Contributing\nPlease use the `canary` branch when creating a pull request.\n\n## Contributors\n- [Mark Lagendijk](https://github.com/marklagendijk)\n- [Andrew Luetgers](https://github.com/andrewluetgers)\n- [Nelson Pecora](https://github.com/yoshokatana)\n- [Mark Battersby](https://github.com/markalfred)\n- [Beau Gunderson](https://github.com/beaugunderson)\n- [Spencer](https://github.com/spenceralger)\n- [Paul](https://github.com/paulbalomiri)\n- [TheHalcyonSavant](https://github.com/TheHalcyonSavant)\n\n\n[bower-url]: https://github.com/marklagendijk/lodash-deep/releases/latest\n[bower-image]: https://badge.fury.io/bo/lodash-deep.svg\n\n[npm-url]: https://www.npmjs.org/package/lodash-deep\n[npm-image]: https://badge.fury.io/js/lodash-deep.svg\n\n[travis-url]: http://travis-ci.org/marklagendijk/lodash-deep\n[travis-image]: https://secure.travis-ci.org/marklagendijk/lodash-deep.svg?branch=master\n\n[sauce-url]: https://saucelabs.com/u/marklagendijk\n[sauce-image]: https://saucelabs.com/buildstatus/marklagendijk\n\n[depstat-url]: https://david-dm.org/marklagendijk/lodash-deep\n[depstat-image]: https://david-dm.org/marklagendijk/lodash-deep.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarklagendijk%2Flodash-deep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarklagendijk%2Flodash-deep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarklagendijk%2Flodash-deep/lists"}