{"id":19042085,"url":"https://github.com/writetome51/index-is-valid","last_synced_at":"2026-05-17T10:36:45.854Z","repository":{"id":122062432,"uuid":"178343505","full_name":"writetome51/index-is-valid","owner":"writetome51","description":"Function returns true or false based on whether or not a certain index can exist in a certain array length","archived":false,"fork":false,"pushed_at":"2021-04-19T07:23:03.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T11:19:02.822Z","etag":null,"topics":["array","index","javascript","typescript","valid","validation"],"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/writetome51.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-29T06:11:19.000Z","updated_at":"2021-04-19T07:23:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"35cae70a-8154-4d9f-a904-9947390e71aa","html_url":"https://github.com/writetome51/index-is-valid","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"e0c659c0ef840322364fd1762cd6a1073e2b5d2e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/index-is-valid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Findex-is-valid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Findex-is-valid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Findex-is-valid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Findex-is-valid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/index-is-valid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Findex-is-valid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33135105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["array","index","javascript","typescript","valid","validation"],"created_at":"2024-11-08T22:34:47.660Z","updated_at":"2026-05-17T10:36:45.837Z","avatar_url":"https://github.com/writetome51.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# indexIsValid(index, arrayLength): boolean\n\nReturns true or false based on whether or not `index` can exist in `arrayLength`.  \n`index` can be negative or positive.\n\n## Examples\n```js\nindexIsValid(0, 0); // --\u003e false\n\nindexIsValid(1, 1); // --\u003e false\n\nindexIsValid(-1, 1); // --\u003e true\n\nindexIsValid(1, 2); // --\u003e true\n\nindexIsValid(-2, 2); // --\u003e true\n\nindexIsValid(-3, 2); // --\u003e false\n```\n\n## Installation\n`npm i  @writetome51/index-is-valid`\n\n## Loading\n```js\nimport { indexIsValid } from '@writetome51/index-is-valid';\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Findex-is-valid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Findex-is-valid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Findex-is-valid/lists"}