Skip to content

issues Search Results · repo:Mayandev/fe-interview-handwrite language:JavaScript

Filter by

8 results
 (54 ms)

8 results

inMayandev/fe-interview-handwrite (press backspace or delete to remove)

可以在代码中添加注释,比如题目背景,原理,一些过程中的注释
  • jinchibi
  • Opened 
    on Apr 15, 2024
  • #17

Function.prototype.myCall = function (context, ...paramsArr) { if (context === null || context === undefined) { context = window; } else { context = Object(context); // *** } const specialPrototype = Symbol( ...
  • WhaleMr
  • Opened 
    on Oct 1, 2022
  • #12

仓库里的实现输出是 number 不是 number[],然后 arr 的状态转移也不太对。不知道是题不一样还是写成了别的。 自己实现了一下 function lis(nums: number[]): number[]{ if (nums.length === 0) return []; const arr = new Array(nums.length).fill(1); // 保存以当前位置结尾的最大连续子串长度 ...
  • Sansui233
  • 1
  • Opened 
    on Sep 25, 2021
  • #10

在没有resolve的时候直接调.then的话, 会进入reject
  • zhaozhongyu
  • 1
  • Opened 
    on Jun 7, 2021
  • #9

res.length === arr.length 这一句,并不能保证所有promise都resolve了 若res[1]=1,则res.length=2; 但res[0]对应的promise不一定resolve了。
  • ascodelife
  • 2
  • Opened 
    on Dec 9, 2020
  • #7

bind函数的返回值里可以传递参数。 我的实现是: Function.prototype.bindNew = function (context, ...args) { return (...newArgs) = this.apply(context, [...args, ...newArgs]); }; // test const test = { name: fy , showName: ...
  • fkworld
  • 1
  • Opened 
    on Oct 22, 2020
  • #1
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub