Skip to content

Commit 6cfc4dc

Browse files
HarshithaKPcodebytere
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 a0ad12b commit 6cfc4dc

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
@@ -1391,6 +1391,11 @@ added: v10.0.0
13911391
* Returns: {boolean}
13921392

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

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

0 commit comments

Comments
 (0)