{"id":18435888,"url":"https://github.com/darekf77/lodash-walk-object","last_synced_at":"2025-04-07T20:32:29.335Z","repository":{"id":49762964,"uuid":"163770432","full_name":"darekf77/lodash-walk-object","owner":"darekf77","description":"Iterate all properties of object or array","archived":false,"fork":false,"pushed_at":"2024-05-22T04:36:29.000Z","size":6324,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-22T12:39:43.777Z","etag":null,"topics":["data-manipulation","iterator-pattern"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darekf77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-01T22:17:27.000Z","updated_at":"2024-06-01T18:18:05.478Z","dependencies_parsed_at":"2023-02-16T09:35:24.630Z","dependency_job_id":"457a3379-7e45-445e-9ddc-b2a4d9b2ad76","html_url":"https://github.com/darekf77/lodash-walk-object","commit_stats":{"total_commits":257,"total_committers":3,"mean_commits":85.66666666666667,"dds":"0.19455252918287935","last_synced_commit":"f6a5bd5e6f82896375f6811383b849d73c4f8a5e"},"previous_names":[],"tags_count":101,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Flodash-walk-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Flodash-walk-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Flodash-walk-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Flodash-walk-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darekf77","download_url":"https://codeload.github.com/darekf77/lodash-walk-object/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247554688,"owners_count":20957659,"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":["data-manipulation","iterator-pattern"],"created_at":"2024-11-06T06:09:35.700Z","updated_at":"2025-04-07T20:32:24.810Z","avatar_url":"https://github.com/darekf77.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WALK ALL PROPERTIES DEEP IN OBJECT\n\nThis library let you go deep through all \nproperties in your javascript object with\nnice possibility to change theirs values\nwithout confusion.\n\n# WALK OBJECT\n\n**walk.Object( myJSObject, iteratorFunction )**\n\n**walk.ObjectBy( myObjectPropert, contextObject  , iteratorFunction )**\n\nThere are both similar... the difference is \nthat, with second function you main object \nis also included in iteration and can be changed.\n\n# Example\n\n```ts\n\nimport { walk } from 'lodash-walk-object'\n\nlet = yourJSObject = {\n  isGood: true,\n  arr = [ \n    {  insideObjectValue: 1 } \n    {  insideObjectValue: 1 } \n  ],\n  testObject: {}\n}\n\nwalk.Object(yourJSObject, (value, lodashPath, changeValue) =\u003e {\n  if(lodashPath === 'arr[0].insideObjectValue') {\n    changeValue(2)\n  }\n} )\n\nconsole.log(yourJSObject)\n\n// RESULT\n\n/*\n{\n  isGood: true,\n  arr = [ \n    {  insideObjectValue: 2 } \n    {  insideObjectValue: 1 } \n  ],\n  testObject: {}\n}\n*/\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarekf77%2Flodash-walk-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarekf77%2Flodash-walk-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarekf77%2Flodash-walk-object/lists"}