{"id":17736596,"url":"https://github.com/parro-it/iterate-fun","last_synced_at":"2025-03-31T19:17:04.996Z","repository":{"id":57278453,"uuid":"88200298","full_name":"parro-it/iterate-fun","owner":"parro-it","description":"A function toolbelt to work with iterables","archived":false,"fork":false,"pushed_at":"2017-04-18T19:49:06.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T10:01:51.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/parro-it.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":"2017-04-13T19:42:54.000Z","updated_at":"2019-07-09T11:55:13.000Z","dependencies_parsed_at":"2022-09-18T12:31:57.773Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/iterate-fun","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterate-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterate-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterate-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterate-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/iterate-fun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523847,"owners_count":20791444,"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-10-26T00:23:36.738Z","updated_at":"2025-03-31T19:17:04.968Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iterate-fun\n\n\u003e A function toolbelt to work with iterables\n\nbackground details relevant to understanding what this module does\n\n## Usage\n\ndescription of the example\n\n```js\nconst iterateFun = require('iterate-fun');\n\nconsole.log({iterateFun});\n```\n\nThis will output\n\n```\n\n```\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/iterate-fun/master.svg)](http://travis-ci.org/parro-it/iterate-fun)\n[![NPM downloads](https://img.shields.io/npm/dt/iterate-fun.svg)](https://npmjs.org/package/iterate-fun)\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### iterateFunction\n\nReturn an iterable that continously call `fn` argument,\niterating over the results.\n\n**Parameters**\n\n-   `fn` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** the function that returns result iterable items.\n\n**Examples**\n\n```javascript\nconst arr = [42, 43, 44];\nconst result = iterateFunction(() =\u003e {\n\tif (arr.length === 0) {\n\t\treturn Done;\n\t}\n\treturn arr.shift() + 1;\n});\n// results === [43, 44, 45]\n```\n\nReturns **any** A new iterable that iterate over `fn` results.\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n    $ npm install iterate-fun\n\n## See Also\n\n-   [`noffle/common-readme`](https://github.com/noffle/common-readme)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fiterate-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fiterate-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fiterate-fun/lists"}