mirror of https://github.com/veypi/OneAuth.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
234 B
TypeScript
9 lines
234 B
TypeScript
|
3 years ago
|
export function isBuffer(value: any): boolean {
|
||
|
|
return (
|
||
|
|
value != null &&
|
||
|
|
value.constructor != null &&
|
||
|
|
typeof value.constructor.isBuffer === "function" &&
|
||
|
|
value.constructor.isBuffer(value)
|
||
|
|
);
|
||
|
|
}
|