|
|
|
|
|
by TekMol
1687 days ago
|
|
What I would do if I wanted to use "is-buffer" is I would copy this index.js to a new file called "isBuffer.js" and it would look like this: export function isBuffer (obj) {
return obj != null && obj.constructor != null &&
typeof obj.constructor.isBuffer === 'function' &&
obj.constructor.isBuffer(obj)
}
Imho, there is no need to pull 10 files into my project to use one function. |
|