{"id":20780097,"url":"https://github.com/xotic750/array-includes-x","last_synced_at":"2025-10-30T21:40:36.657Z","repository":{"id":24027591,"uuid":"100288574","full_name":"Xotic750/array-includes-x","owner":"Xotic750","description":"Determines whether an array includes a certain element.","archived":false,"fork":false,"pushed_at":"2023-01-04T22:56:19.000Z","size":2753,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T22:43:24.337Z","etag":null,"topics":["array","browser","includes","javascript","nodejs"],"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/Xotic750.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-08-14T16:38:50.000Z","updated_at":"2020-01-30T22:46:39.000Z","dependencies_parsed_at":"2023-01-14T00:16:01.322Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/array-includes-x","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/Xotic750/array-includes-x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-includes-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-includes-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-includes-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-includes-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/array-includes-x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-includes-x/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263182167,"owners_count":23426630,"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":["array","browser","includes","javascript","nodejs"],"created_at":"2024-11-17T13:32:11.496Z","updated_at":"2025-10-30T21:40:31.625Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/array-includes-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/array-includes-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/array-includes-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/array-includes-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/array-includes-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/array-includes-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/array-includes-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/array-includes-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/array-includes-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/array-includes-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/array-includes-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/array-includes-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/array-includes-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/array-includes-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_array-includes-x\"\u003e\u003c/a\u003e\n\n## array-includes-x\n\nDetermines whether an array includes a certain element.\n\n\u003ca name=\"exp_module_array-includes-x--module.exports\"\u003e\u003c/a\u003e\n\n### `module.exports` ⇒ \u003ccode\u003eboolean\u003c/code\u003e ⏏\n\nThis method determines whether an array includes a certain element,\nreturning true or false as appropriate.\n\n**Kind**: Exported member  \n**Returns**: \u003ccode\u003eboolean\u003c/code\u003e - `true` if searched element is included; otherwise `false`.  \n**Throws**:\n\n- \u003ccode\u003eTypeError\u003c/code\u003e If `array` is `null` or `undefined`.\n\n| Param         | Type                | Description                                                                                                                                                           |\n| ------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| array         | \u003ccode\u003eArray\u003c/code\u003e  | The array to search.                                                                                                                                                  |\n| searchElement | \u003ccode\u003e\\*\u003c/code\u003e     | Element to locate in the `array`.                                                                                                                                     |\n| [fromIndex]   | \u003ccode\u003enumber\u003c/code\u003e | The position in this array at which to begin searching for searchElement. A negative value searches from the index of array.length + fromIndex by asc. Defaults to 0. |\n\n**Example**\n\n```js\nimport includes from 'array-includes-x';\n\nconst subject = [2, 3, undefined, true, 'hej', null, 2, false, 0, -0, NaN];\nconsole.log(includes(subject, undefined)); // true\nconsole.log(includes(subject, undefined, 3)); // false\nconsole.log(includes(subject, NaN)); // true\nconsole.log(includes(subject, 10)); // false\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Farray-includes-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Farray-includes-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Farray-includes-x/lists"}