Skip to content

Commit 58b70d3

Browse files
thefourtheyeevanlucas
authored andcommitted
doc: link and highlight Object.assign
PR-URL: #7670 Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent a82573d commit 58b70d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/util.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -651,13 +651,13 @@ Deprecated predecessor of `console.log`.
651651

652652
### util._extend(obj)
653653

654-
Stability: 0 - Deprecated: Use Object.assign() instead.
654+
Stability: 0 - Deprecated: Use [`Object.assign()`] instead.
655655

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

659659
It is deprecated and should not be used in new code. JavaScript comes with very
660-
similar built-in functionality through `Object.assign()`.
660+
similar built-in functionality through [`Object.assign()`].
661661

662662
[`Array.isArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
663663
[constructor]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/constructor
@@ -668,3 +668,4 @@ similar built-in functionality through `Object.assign()`.
668668
[`console.log()`]: console.html#console_console_log_data
669669
[`console.error()`]: console.html#console_console_error_data
670670
[`Buffer.isBuffer()`]: buffer.html#buffer_class_method_buffer_isbuffer_obj
671+
[`Object.assign()`]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign

0 commit comments

Comments
 (0)