{"id":20780137,"url":"https://github.com/xotic750/assert-is-callable-x","last_synced_at":"2026-05-14T22:46:29.195Z","repository":{"id":2596254,"uuid":"46943625","full_name":"Xotic750/assert-is-callable-x","owner":"Xotic750","description":"If IsCallable(callbackfn) is false, throw a TypeError exception.","archived":false,"fork":false,"pushed_at":"2023-01-04T21:54:48.000Z","size":2013,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T04:36:27.522Z","etag":null,"topics":["browser","ecmascript","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":"2015-11-26T19:25:25.000Z","updated_at":"2020-01-30T22:59:11.000Z","dependencies_parsed_at":"2023-01-13T11:57:58.506Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/assert-is-callable-x","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fassert-is-callable-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fassert-is-callable-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fassert-is-callable-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fassert-is-callable-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/assert-is-callable-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243123497,"owners_count":20240031,"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":["browser","ecmascript","nodejs"],"created_at":"2024-11-17T13:32:28.690Z","updated_at":"2025-10-26T16:13:44.223Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/assert-is-callable-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/assert-is-callable-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/assert-is-callable-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/assert-is-callable-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/assert-is-callable-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/assert-is-callable-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/assert-is-callable-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/assert-is-callable-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/assert-is-callable-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/assert-is-callable-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/assert-is-callable-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/assert-is-callable-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/assert-is-callable-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/assert-is-callable-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_assert-is-callable-x\"\u003e\u003c/a\u003e\n\n## assert-is-callable-x\n\nIf IsCallable(callbackfn) is false, throw a TypeError exception.\n\n\u003ca name=\"exp_module_assert-is-callable-x--module.exports\"\u003e\u003c/a\u003e\n\n### `module.exports(value)` ⇒ \u003ccode\u003e\\*\u003c/code\u003e ⏏\n\nTests `callback` to see if it is callable, throws a `TypeError` if it is\nnot. Otherwise returns the `callback`.\n\n**Kind**: Exported function  \n**Returns**: \u003ccode\u003e\\*\u003c/code\u003e - Returns `callback` if it is callable.  \n**Throws**:\n\n- \u003ccode\u003eTypeError\u003c/code\u003e Throws if `callback` is not a callable.\n\n| Param     | Type                | Description                   |\n| --------- | ------------------- | ----------------------------- |\n| value     | \u003ccode\u003e\\*\u003c/code\u003e     | The argument to be tested.    |\n| [message] | \u003ccode\u003estring\u003c/code\u003e | Optional alternative message. |\n\n**Example**\n\n```js\nimport assertIsCallable from 'assert-is-callable-x';\n\nconst primitive = true;\nconst mySymbol = Symbol('mySymbol');\nconst symObj = Object(mySymbol);\nconst object = {};\nconst fn = function fn() {};\n\nassertIsCallable(primitive); // TypeError 'true is not callable'.\nassertIsCallable(object); // TypeError '#\u003cObject\u003e is not callable'.\nassertIsCallable(mySymbol); // TypeError 'Symbol(mySymbol) is not callable'.\nassertIsCallable(symObj); // TypeError '#\u003cObject\u003e is not callable'.\nconsole.log(assertIsCallable(fn)); // Returns fn.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fassert-is-callable-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Fassert-is-callable-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fassert-is-callable-x/lists"}