{"id":19388230,"url":"https://github.com/zakimohammed/javascript-elders","last_synced_at":"2026-05-29T16:31:30.328Z","repository":{"id":99556273,"uuid":"405870088","full_name":"ZakiMohammed/javascript-elders","owner":"ZakiMohammed","description":"Exploring the JavaScript's elder functions named - apply, call and bind.","archived":false,"fork":false,"pushed_at":"2021-09-23T20:54:35.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T19:18:34.164Z","etag":null,"topics":["apply","bind","call","javascript","this-keyword"],"latest_commit_sha":null,"homepage":"https://codeomelet.com/posts/javascript-elders-call-apply-bind","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZakiMohammed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-09-13T07:12:39.000Z","updated_at":"2022-08-14T18:19:41.000Z","dependencies_parsed_at":"2023-03-30T12:21:20.238Z","dependency_job_id":null,"html_url":"https://github.com/ZakiMohammed/javascript-elders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZakiMohammed/javascript-elders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fjavascript-elders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fjavascript-elders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fjavascript-elders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fjavascript-elders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZakiMohammed","download_url":"https://codeload.github.com/ZakiMohammed/javascript-elders/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fjavascript-elders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["apply","bind","call","javascript","this-keyword"],"created_at":"2024-11-10T10:12:08.552Z","updated_at":"2026-05-29T16:31:30.279Z","avatar_url":"https://github.com/ZakiMohammed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Elders - Call, Apply, Bind\n\nExploring the JavaScript's elder functions named - call, apply and bind.\n\nLink: https://codeomelet.com/posts/javascript-elders-call-apply-bind\n\n---\n\nFor any given function:\n```\nfunction theFunction(argument1, argument2, ..., argumentN) {\n    // usage of this.property1, this.property2, ..., this.propertyN\n    // usage of param1, param2, ..., paramN\n}\n```\n\nFor any given object:\n```\nconst theObject = { property1, property2, ..., propertyN };\n```\n\n---\n\nSyntax for call:\n```\nconst result = theFunction.call(theObject, param1, param2, ..., paramN);\n```\n\nSyntax for apply:\n```\nconst result = theFunction.apply(theObject, [param1, param2, ..., paramN]);\n```\n\nSyntax for bind (works only for theObject):\n```\nconst theNewFunction = theFunction.bind(theObject);\nconst result1 = theNewFunction(param1, param2, ..., paramN);\nconst result2 = theNewFunction(param1, param2, ..., paramN);\n...\nconst resultN = theNewFunction(param1, param2, ..., paramN);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakimohammed%2Fjavascript-elders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakimohammed%2Fjavascript-elders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakimohammed%2Fjavascript-elders/lists"}