Skip to content

Commit 95871a1

Browse files
HarshithaKPgireeshpunathil
authored andcommitted
doc: explain native external types
There is a reference to native external types in util.types.isExternal api documentation. Provide a brief explanation to that. Refs: #31173 (comment) PR-URL: #31214 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent ba98d9a commit 95871a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/util.md

+5
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,11 @@ added: v10.0.0
13921392
* Returns: {boolean}
13931393

13941394
Returns `true` if the value is a native `External` value.
1395+
A native `External` value is a special type of object whose
1396+
data is not stored within the JavaScript managed heap
1397+
and does not conform to standard JavaScript types. Such
1398+
objects are created either by Node.js internals or native
1399+
addons and are wrapped by a JavaScript object.
13951400

13961401
### `util.types.isFloat32Array(value)`
13971402
<!-- YAML

0 commit comments

Comments
 (0)