mirror of https://github.com/nodejs/node.git
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
parent
9f71a3109e
commit
7cb3a5427d
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue