CS-Interview-Knowledge-Map icon indicating copy to clipboard operation
CS-Interview-Knowledge-Map copied to clipboard

Build the best interview map. The current content includes JS, network, browser related, performance optimization, security, framework, Git, data structure, algorithm, etc.

Results 43 CS-Interview-Knowledge-Map issues
Sort by recently updated
recently updated
newest added

>如果是对象,就通过 toPrimitive 转换对象 应该是通过`toPrimitive`转换成原始值。

https://github.com/InterviewMap/CS-Interview-Knowledge-Map/blob/master/JS/JS-en.md#mapflatmap-and-reduce ```js [1, [2], 3].flatMap((v) => v + 1) // -> [2, 3, 4] ``` 上面这个,运行结果是不正确的,而且没有表达 flatMap 的作用 应该是类似这样 ```js const arr = [1, 2, 3, 4] arr.map(x => [x...

__proto__这个属性不存在与IE浏览器中,是不是要特殊说明下?

![image](https://user-images.githubusercontent.com/38066766/98523546-0302c100-22b1-11eb-88d6-98910216670f.png) new Foo.getName();的执行顺序我感觉是: ``` 1、var temp=Foo.getName 2、new temp() ``` 因为...·...的优先级大于new...(...)

![image](https://user-images.githubusercontent.com/44350921/77821431-2d8a7a00-7125-11ea-84e0-34210f6cc7c0.png) 新增了一种基础数据类型:BigInt

![20190322094027](https://user-images.githubusercontent.com/32050411/54795394-02a25600-4c87-11e9-8906-634f03067c82.png) 前驱结点此处或许应为 `parent.right!==node` 或 `parent.left===node` 同理后继结点算法也有类似问题

原文如下 ![image](https://user-images.githubusercontent.com/12137804/62350787-5cb8ff00-b536-11e9-84ed-b8ce69c4ddff.png) 事件触发一直都是按照:捕获-事件源-冒泡,三个阶段在触发。 只不过 **捕获事件** 与 **冒泡事件** 均是针对事件源的所有父元素来定义的。 因此,文中在同一个元素上绑定捕获事件与冒泡事件,并触发了这个元素的事件是没有意义的。 表现出来的效果也就是:触发顺序与绑定顺序相同。 但是当在该元素的子元素上触发一个事件,此时,这个元素的触发顺序自然就是先捕获后冒泡。

https://yuchengkai.cn/docs - is this website available in english?

![image](https://user-images.githubusercontent.com/22948950/61573297-a2111180-aade-11e9-82ce-dbff6d232c57.png) 测试将`immediate置为false`,后面的函数变量没有被保存 测试用例: ```js function testFn(name){ console.log(`hello ${name}`); } var d = debounce(testFn,0,false); d('xiaomin'); d('xiaohua'); -----> hello xiaomin // 置为false,应该输出 hello xiaohua ``` 稍加修改 ```js return function(...params) { // 否则缓存参数和调用上下文...