{"id":18556115,"url":"https://github.com/tohsaka888/interview-code","last_synced_at":"2026-04-17T01:32:10.385Z","repository":{"id":103638262,"uuid":"574910607","full_name":"tohsaka888/interview-code","owner":"tohsaka888","description":"JS/TS 面试手撕代码题","archived":false,"fork":false,"pushed_at":"2023-12-15T14:38:00.000Z","size":37,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T13:11:24.131Z","etag":null,"topics":["interview","js","ts"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tohsaka888.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":"2022-12-06T10:48:49.000Z","updated_at":"2022-12-07T03:23:44.000Z","dependencies_parsed_at":"2024-11-06T21:34:05.853Z","dependency_job_id":"70b86ac9-877c-47c7-b0e2-6b214ffa80b2","html_url":"https://github.com/tohsaka888/interview-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tohsaka888/interview-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohsaka888%2Finterview-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohsaka888%2Finterview-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohsaka888%2Finterview-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohsaka888%2Finterview-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tohsaka888","download_url":"https://codeload.github.com/tohsaka888/interview-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tohsaka888%2Finterview-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31911471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["interview","js","ts"],"created_at":"2024-11-06T21:29:05.126Z","updated_at":"2026-04-17T01:32:10.364Z","avatar_url":"https://github.com/tohsaka888.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS 面试手撕代码题\n\n## 已完成列表\n\n- [手写节流函数](/throttle/)\n- [手写防抖函数](/debounce/)\n- [手写`Promise.all`](/Promise.all/)\n- [手写`Promise.race`](/Promise.race/)\n- [手写`Promise.any`](/Promise.any/)\n- [手写`Promise.allSettled`](/Promise.allSettled/)\n- [手写浅拷贝](/shallowClone/)\n- [手写深拷贝](/deepClone/)\n- [手写`instanceof`](/instanceof/)\n- [手写`call`](/call/)\n\n## TODO\n\n- 手写`apply`\n- 手写`bind`\n\n## 测试全部用例\n\n```bash\ndeno test ./\n```\n\n如果显示类似内容：\n\n```bash\nCheck file:///home/rin/Documents/interview-code/Promise.all/index.test.ts\nCheck file:///home/rin/Documents/interview-code/throttle/index.test.ts\nrunning 2 tests from ./Promise.all/index.test.ts\n手写Promise.all-JS ... ok (6ms)\n手写Promise.all-TS ... ok (5ms)\nrunning 2 tests from ./throttle/index.test.ts\nJS节流 ... ok (8ms)\nTS节流 ... ok (5ms)\n\nok | 4 passed | 0 failed (57ms)\n```\n\n则运行成功！\n\n\u003e [`deno`下载文档](https://deno.land/manual@v1.28.3/getting_started/installation)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftohsaka888%2Finterview-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftohsaka888%2Finterview-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftohsaka888%2Finterview-code/lists"}