Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
22 lines
392 B
JavaScript
22 lines
392 B
JavaScript
// Module ID: 1460
|
|
// Function ID: 1461
|
|
// Dependencies: []
|
|
|
|
// Module 1460
|
|
|
|
export default function isBuffer(copy) {
|
|
let tmp = copy;
|
|
if (copy) {
|
|
tmp = typeof copy === "object";
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof copy.copy === "function";
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof copy.fill === "function";
|
|
}
|
|
if (tmp) {
|
|
tmp = typeof copy.readUInt8 === "function";
|
|
}
|
|
return tmp;
|
|
};
|