Drop array support from endsWith.
This commit is contained in:
@@ -335,8 +335,6 @@ export default class Buffer {
|
||||
*/
|
||||
|
||||
endsWith(str: string): boolean {
|
||||
if (Array.isArray(str)) return str.some((s) => this.endsWith(s));
|
||||
|
||||
if (str.length === 1) {
|
||||
return this.last === str;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user