Skip to content

Commit

Permalink
doc: add note to util.isBuffer
Browse files Browse the repository at this point in the history
Since util.isBuffer is deprecated, we should be explicit that
Buffer.isBuffer should be used instead.

PR-URL: #3790
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
evanlucas authored and Myles Borins committed Nov 17, 2015
1 parent a49dd89 commit 3435f87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/util.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ Returns `true` if the given "object" is a primitive type. `false` otherwise.

Stability: 0 - Deprecated

Use `Buffer.isBuffer()` instead.

Returns `true` if the given "object" is a `Buffer`. `false` otherwise.

var util = require('util');
Expand Down

0 comments on commit 3435f87

Please sign in to comment.