util._extend(target, source)


稳定性: 0 - 弃用: 改为使用 Object.assign()

util._extend() 方法从未打算在内部的 Node.js 模块之外使用。 社区无论如何都找到并使用了它。

它已被弃用,不应在新代码中使用。 JavaScript 通过 Object.assign() 提供了非常相似的内置功能。

Stability: 0 - Deprecated: Use Object.assign() instead.

The util._extend() method was never intended to be used outside of internal Node.js modules. The community found and used it anyway.

It is deprecated and should not be used in new code. JavaScript comes with very similar built-in functionality through Object.assign().