1 | /*!
|
2 | * Determine if an object is a Buffer
|
3 | *
|
4 | * @author Feross Aboukhadijeh <https://feross.org>
|
5 | * @license MIT
|
6 | */
|
7 |
|
8 | module.exports = function isBuffer (obj) {
|
9 | return obj != null && obj.constructor != null &&
|
10 | typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
11 | }
|