# 11-23

参考:

进度:

# 原子笔记

  • 多参数柯里化

    function curry(func) {
    
      return function curried(...args) {
        if (args.length >= func.length) {
          return func.apply(this, args);
        } else {
          return function(...args2) {
            return curried.apply(this, args.concat(args2));
          }
        }
      };
    
    }
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
  • obj.method() 中,. 返回的准确来说不是属性的值,而是一个特殊的 “Reference Type” 值((base, name, strict)),其中储存着属性的值和它的来源对象。

    • base 是对象。
    • name 是属性名。
    • strictuse strict 模式下为 true
上次更新: 11/25/2020, 12:35:27 AM