{"id":27001809,"url":"https://github.com/manferlo81/each-arg","last_synced_at":"2026-02-22T14:03:26.832Z","repository":{"id":34915556,"uuid":"189712502","full_name":"manferlo81/each-arg","owner":"manferlo81","description":"Iterates through arguments or any other array-like object starting from specific index.","archived":false,"fork":false,"pushed_at":"2025-02-08T10:01:59.000Z","size":2398,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T11:18:31.301Z","etag":null,"topics":["arguments","array","array-like","callback","each","for-each","params"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/manferlo81.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-06-01T09:06:49.000Z","updated_at":"2025-02-08T10:02:03.000Z","dependencies_parsed_at":"2025-02-08T11:18:23.093Z","dependency_job_id":null,"html_url":"https://github.com/manferlo81/each-arg","commit_stats":{"total_commits":800,"total_committers":5,"mean_commits":160.0,"dds":0.5225,"last_synced_commit":"20e2c30cdfcb0bfce3c6371c020c23dc34678751"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manferlo81%2Feach-arg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manferlo81%2Feach-arg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manferlo81%2Feach-arg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manferlo81%2Feach-arg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manferlo81","download_url":"https://codeload.github.com/manferlo81/each-arg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247118652,"owners_count":20886591,"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":["arguments","array","array-like","callback","each","for-each","params"],"created_at":"2025-04-04T04:20:10.496Z","updated_at":"2026-02-22T14:03:21.782Z","avatar_url":"https://github.com/manferlo81.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# each-arg\n\n[![CircleCI](https://circleci.com/gh/manferlo81/each-arg.svg?style=svg)](https://circleci.com/gh/manferlo81/each-arg)\n[![npm](https://badgen.net/npm/v/each-arg)](https://www.npmjs.com/package/each-arg)\n[![codecov](https://codecov.io/gh/manferlo81/each-arg/branch/main/graph/badge.svg)](https://codecov.io/gh/manferlo81/each-arg)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/each-arg/badge?style=rounded)](https://www.jsdelivr.com/package/npm/each-arg)\n[![packagephobia](https://badgen.net/packagephobia/install/each-arg)](https://packagephobia.now.sh/result?p=each-arg)\n[![bundlephobia](https://badgen.net/bundlephobia/min/each-arg)](https://bundlephobia.com/result?p=each-arg)\n[![types](https://img.shields.io/npm/types/each-arg.svg)](https://github.com/microsoft/typescript)\n[![Known Vulnerabilities](https://snyk.io/test/github/manferlo81/each-arg/badge.svg?targetFile=package.json)](https://snyk.io/test/github/manferlo81/each-arg?targetFile=package.json)\n[![license](https://badgen.net/github/license/manferlo81/each-arg)](LICENSE)\n\nIterates through arguments or any other array-like object starting from a specific index.\n\n## Install\n\n```bach\nnpm i each-arg\n```\n\n## CDN\n\n### jsDelivr\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/each-arg@latest/dist/umd/each-arg.umd.js\"\u003e\n```\n\n*for production...*\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/each-arg@latest/dist/umd/each-arg.umd.min.js\"\u003e\n```\n\n[more options...](https://www.jsdelivr.com/package/npm/each-arg?version=latest)\n\n### unpkg\n\n```html\n\u003cscript src=\"https://unpkg.com/each-arg@latest/dist/umd/each-arg.umd.js\"\u003e\n```\n\n*for production...*\n\n```html\n\u003cscript src=\"https://unpkg.com/each-arg@latest/dist/umd/each-arg.umd.min.js\"\u003e\n```\n\n[more options...](https://unpkg.com/each-arg@latest/)\n\n## Reference\n\n***syntax***\n\n```typescript\neachArg(arr, start, callback(value, index, ...extra): any, ...extra): void;\n```\n\n*Iterates over the* `array`*,* `string` *or* `array-like` `arr` *starting from the* `start` *index. The* `callback` *function will be called for every* `value` *in the array, with the* `value` *itself, the* `index` *of the current item and any* `extra` *argument passed to* `eachArg` *function.*\n\n*If a negative* `start` *index is provided the iteration will start from* `X` *number of items counting from the last item in the input array-like.*\n\n*If the* `callback` *returns a truthy value the iteration will stop.*\n\n*Any* `extra` *argument passed to* `eachArg` *function will be passed down to the* `callback` *function.*\n\n*The* `callback` *function inherits the* `this` *value form the* `eachArg` *function call. If you need a specific value inside the* `callback`, *call* `eachArg` *using it's* `call` *method.*\n\n```typescript\neachArg.call(thisArg, arr, start, callback, ..extra);\n```\n\n***example***\n\n```javascript\nimport eachArg from \"each-arg\";\n\neachArg([1, 2, 3, 4, 5], 1, (value, index, num) =\u003e {\n  console.log(value + \" \u003e\u003e \" + (index + num));\n  return index === 3;\n}, 100);\n```\n\n```console\n2 \u003e\u003e 101\n3 \u003e\u003e 102\n4 \u003e\u003e 103\n```\n\n## Usage\n\n### Node.js\n\n```javascript\nconst eachArg = require(\"each-arg\");\neachArg(args, start, callback);\n```\n\n### Browser\n\n*After adding the* `script` *tag,* `eachArg` *function will be available globally through* `eachArg` *or* `window.eachArg`*.*\n\n```javascript\neachArg(args, start, callback);\n```\n\n## License\n\n[MIT](LICENSE) \u0026copy; [Manuel Fernández](https://github.com/manferlo81)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanferlo81%2Feach-arg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanferlo81%2Feach-arg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanferlo81%2Feach-arg/lists"}