📜  fields.flat 不是函数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:48.133000             🧑  作者: Mango

代码示例2
// Patched into :
static normalizeFields(...fields) {
    return fields
      .reduce((acc, val) => acc.concat(val), [])
      .map(field =>
        this.normalizeField(
          field && field.name,
          field && field.value,
          field && typeof field.inline === 'boolean' ? field.inline : false,
        ),
      );
  }