util: introduce `util.types.is[…]` type checks
Provide public APIs for native typechecking that is actually useful.
The motivation for this is providing alternatives to userland
modules that would currently rely on `process.binding('util')`.
PR-URL: https://github.com/nodejs/node/pull/18415
Reviewed-By:
Evan Lucas <evanlucas@me.com>
Reviewed-By:
Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
Reviewed-By:
James M Snell <jasnell@gmail.com>
Reviewed-By:
Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By:
Сковорода Никита Андреевич <chalkerx@gmail.com>
parent
bd6e0be0
Please register or sign in to comment