{"id":22021488,"url":"https://github.com/lamansky/is-iterable-with","last_synced_at":"2026-04-11T13:10:09.311Z","repository":{"id":57277307,"uuid":"145709480","full_name":"lamansky/is-iterable-with","owner":"lamansky","description":"Checks if a value is an iterable that outputs exactly the specified values.","archived":false,"fork":false,"pushed_at":"2018-08-22T13:01:46.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T01:37:33.811Z","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/lamansky.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T12:58:46.000Z","updated_at":"2018-08-22T13:01:48.000Z","dependencies_parsed_at":"2022-08-29T06:41:56.950Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/is-iterable-with","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fis-iterable-with","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fis-iterable-with/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fis-iterable-with/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fis-iterable-with/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/is-iterable-with/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245084930,"owners_count":20558306,"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-11-30T06:12:17.837Z","updated_at":"2025-12-30T23:35:10.511Z","avatar_url":"https://github.com/lamansky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-iterable-with\n\nChecks if a value is an iterable that outputs exactly the specified values.\n\n## Installation\n\nRequires [Node.js](https://nodejs.org/) 6.0.0 or above.\n\n```bash\nnpm i is-iterable-with\n```\n\n## API\n\nThe module exports a single function.\n\n### Parameters\n\n1. Bindable: `iterable` (any): The value that should be an iterable.\n2. Variadic: `...values`: The values that should be iterated.\n\n### Return Value\n\nReturns `true` if `iterable` is an iterable and if its outputted values exactly equal the `values` arguments. Otherwise `false`.\n\n## Example\n\n```javascript\nconst isIterableWith = require('is-iterable-with')\n\nconst arr = [1, 2, 3]\n\nisIterableWith(arr, 1, 2, 3) // true\n\nisIterableWith(123) // false\nisIterableWith(arr, 1, 2) // false\nisIterableWith(arr, 1, 2, 3, 4) // false\nisIterableWith(arr, 2, 1, 3) // false\n\n// Supports the bind operator\narr::isIterableWith(1, 2, 3) // true\n```\n\n## Related\n\n* [is-array-with](https://github.com/lamansky/is-array-with)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fis-iterable-with","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Fis-iterable-with","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fis-iterable-with/lists"}