doc: add note to util.isBuffer

Since util.isBuffer is deprecated, we should be explicit that
Buffer.isBuffer should be used instead.

PR-URL: https://github.com/nodejs/node/pull/3790
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
pull/3790/head
Evan Lucas 2015-11-12 06:29:27 -06:00
parent 9f71a3109e
commit 7cb3a5427d
1 changed files with 2 additions and 0 deletions

View File

@ -404,6 +404,8 @@ Returns `true` if the given "object" is a primitive type. `false` otherwise.
Stability: 0 - Deprecated Stability: 0 - Deprecated
Use `Buffer.isBuffer()` instead.
Returns `true` if the given "object" is a `Buffer`. `false` otherwise. Returns `true` if the given "object" is a `Buffer`. `false` otherwise.
var util = require('util'); var util = require('util');