• 由运行时环境提供该API

适用范围

  • 在 Node.js 中,structuredClone()是在 Node.js 16.4.0 版本中引入的。
  • 支持多种数据类型(map, set等)

示例

let clone = structuredClone(obj)