Skip to content

Commit e2336f9

Browse files
evanlucasrvagg
authored andcommitted
doc: add note to util.isBuffer
Since util.isBuffer is deprecated, we should be explicit that Buffer.isBuffer should be used instead. PR-URL: #3790 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a926659 commit e2336f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/util.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ Returns `true` if the given "object" is a primitive type. `false` otherwise.
404404

405405
Stability: 0 - Deprecated
406406

407+
Use `Buffer.isBuffer()` instead.
408+
407409
Returns `true` if the given "object" is a `Buffer`. `false` otherwise.
408410

409411
var util = require('util');

0 commit comments

Comments
 (0)