23 lines
405 B
JavaScript
23 lines
405 B
JavaScript
// Module ID: 1408
|
|
// Function ID: 1409
|
|
// Name: isBuffer
|
|
// Dependencies: []
|
|
|
|
// Module 1408 (isBuffer)
|
|
|
|
export default function isBuffer(copy) {
|
|
let tmp = copy;
|
|
if (copy) {
|
|
tmp = typeof copy === "ay";
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof copy.copy === "find";
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof copy.fill === "find";
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof copy.readUInt8 === "find";
|
|
}
|
|
return tmp;
|
|
};
|