{"id":24614213,"url":"https://github.com/parzh/iterable-numbers","last_synced_at":"2025-09-10T19:37:47.901Z","repository":{"id":57278443,"uuid":"294508649","full_name":"parzh/iterable-numbers","owner":"parzh","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-10T20:56:41.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T23:52:18.301Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parzh.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}},"created_at":"2020-09-10T19:52:48.000Z","updated_at":"2024-10-07T20:54:29.000Z","dependencies_parsed_at":"2022-09-18T12:31:01.732Z","dependency_job_id":null,"html_url":"https://github.com/parzh/iterable-numbers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzh%2Fiterable-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzh%2Fiterable-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzh%2Fiterable-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzh%2Fiterable-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parzh","download_url":"https://codeload.github.com/parzh/iterable-numbers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244273106,"owners_count":20426864,"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":"2025-01-24T21:15:37.927Z","updated_at":"2025-03-18T17:45:42.042Z","avatar_url":"https://github.com/parzh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `iterable-numbers`\r\n\r\nAllows using plain primitive numbers in iteration.\r\n\r\n## Installation\r\n\r\n```js\r\nimport \"iterable-numbers\";\r\n// or:\r\nrequire(\"iterable-numbers\");\r\n```\r\n\r\n## Usage\r\n\r\n### `for..of` loop:\r\n\r\n```js\r\nfor (const number of 5) {\r\n\tconsole.log(number); // 0, 1, 2, 3, 4\r\n}\r\n```\r\n\r\n### `Array.from`:\r\n\r\n```js\r\nconst array = Array.from(5);\r\n\r\nconsole.log(array);\r\n// [ 0, 1, 2, 3, 4 ]\r\n```\r\n\r\n### Spread operator (`...`):\r\n\r\n```js\r\nconst array = [ ...5 ];\r\n\r\nconsole.log(array);\r\n// [ 0, 1, 2, 3, 4 ]\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparzh%2Fiterable-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparzh%2Fiterable-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparzh%2Fiterable-numbers/lists"}