doc: mention null special-case for `napi_typeof` · nodejs/node@0a9389b · GitHub
Skip to content

Commit 0a9389b

Browse files
goto-bus-stopcodebytere
authored andcommitted
doc: mention null special-case for napi_typeof
The documentation said `napi_typeof` is similar to the `typeof` operator, but the `typeof null` detects `'object'` while `napi_typeof(a_null_value)` detects `napi_null`. PR-URL: #34577 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
1 parent 10dd7a0 commit 0a9389b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

doc/api/n-api.md

Lines changed: 6 additions & 1 deletion

0 commit comments

Comments
 (0)