Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 58b70d3

Browse filesBrowse files
thefourtheyeevanlucas
authored andcommitted
doc: link and highlight Object.assign
PR-URL: #7670 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent a82573d commit 58b70d3
Copy full SHA for 58b70d3

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/util.md‎

Copy file name to clipboardExpand all lines: doc/api/util.md
+3-2Lines changed: 3 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.