{"id":21667232,"url":"https://github.com/luftywiranda13/is-array-elem","last_synced_at":"2026-05-18T08:08:04.625Z","repository":{"id":57276955,"uuid":"100957219","full_name":"luftywiranda13/is-array-elem","owner":"luftywiranda13","description":"Check if value is found in array","archived":false,"fork":false,"pushed_at":"2018-01-16T12:56:25.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T08:46:52.978Z","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/luftywiranda13.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-21T13:53:34.000Z","updated_at":"2017-08-29T19:19:57.000Z","dependencies_parsed_at":"2022-08-25T03:00:48.353Z","dependency_job_id":null,"html_url":"https://github.com/luftywiranda13/is-array-elem","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/luftywiranda13%2Fis-array-elem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fis-array-elem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fis-array-elem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fis-array-elem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luftywiranda13","download_url":"https://codeload.github.com/luftywiranda13/is-array-elem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566931,"owners_count":20473451,"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-25T11:35:28.303Z","updated_at":"2026-05-18T08:07:59.578Z","avatar_url":"https://github.com/luftywiranda13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-array-elem\n\n[![Package Version](https://img.shields.io/npm/v/is-array-elem.svg)](https://www.npmjs.com/package/is-array-elem)\n[![Build Status: Linux](https://img.shields.io/travis/luftywiranda13/is-array-elem/master.svg)](https://travis-ci.org/luftywiranda13/is-array-elem)\n[![Downloads Status](https://img.shields.io/npm/dm/is-array-elem.svg)](https://npm-stat.com/charts.html?package=is-array-elem\u0026from=2016-04-01)\n\nCheck if value is found in array, using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n\n## Installation\n\n```sh\nnpm install --save is-array-elem\n```\n\n## Usage\n\n```js\nconst isArrayElem = require('is-array-elem');\n\nisArrayElem(['foo', 'bar'], 'bar');\n//=\u003e true\n\nisArrayElem(['foo', 'bar'], 'baz');\n//=\u003e false\n\nisArrayElem(['foo', 'bar'], 'foo');\n//=\u003e true\n```\n\n## API\n\n### isArrayElem(array, value)\n\n#### Parameters\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| array | `Array`  | Array to inspect |\n| value | `*` | Value to search for |\n\n#### Returns\n\n- `Boolean`\n\n## Related\n\n- [lodash.indexof](https://www.npmjs.com/package/lodash.indexof) － Gets the index of value in array\n\n## License\n\nMIT \u0026copy; [Lufty Wiranda](https://www.instagram.com/luftywiranda13)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluftywiranda13%2Fis-array-elem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluftywiranda13%2Fis-array-elem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluftywiranda13%2Fis-array-elem/lists"}