{"id":17551454,"url":"https://github.com/taufik-nurrohman/has","last_synced_at":"2025-03-29T07:42:35.067Z","repository":{"id":143802933,"uuid":"314109730","full_name":"taufik-nurrohman/has","owner":"taufik-nurrohman","description":"Conditional utility.","archived":false,"fork":false,"pushed_at":"2022-07-01T13:16:53.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T00:23:23.916Z","etag":null,"topics":["condition","has","helper","if","node","utility"],"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/taufik-nurrohman.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-19T02:02:17.000Z","updated_at":"2024-06-20T21:57:37.395Z","dependencies_parsed_at":null,"dependency_job_id":"b40de880-c5d8-4f51-a736-6696253efe52","html_url":"https://github.com/taufik-nurrohman/has","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fhas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fhas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fhas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fhas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taufik-nurrohman","download_url":"https://codeload.github.com/taufik-nurrohman/has/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156011,"owners_count":20732357,"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":["condition","has","helper","if","node","utility"],"created_at":"2024-10-21T04:46:01.635Z","updated_at":"2025-03-29T07:42:35.042Z","avatar_url":"https://github.com/taufik-nurrohman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Conditional Utility\n===================\n\nUsage\n-----\n\n### CommonJS\n\n~~~ js\nconst {hasValue} = require('@taufik-nurrohman/has');\n\nconsole.log(hasValue('foo', ['foo', 'bar', 'baz']));\n~~~\n\n### ECMAScript\n\n~~~ js\nimport {hasValue} from '@taufik-nurrohman/has';\n\nconsole.log(hasValue('foo', ['foo', 'bar', 'baz']));\n~~~\n\nMethods\n-------\n\n### hasKey(key, object)\n\n### hasObjectKey(key, object)\n\n### hasObjectValue(key, object)\n\n### hasString(x, string, ?start)\n\n### hasStringStart(x, string, ?start)\n\n### hasStringEnd(x, string, ?end)\n\n### hasValue(value, array)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaufik-nurrohman%2Fhas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaufik-nurrohman%2Fhas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaufik-nurrohman%2Fhas/lists"}