chore: Fix lint in Deno

This commit is contained in:
raon0211 2024-08-07 18:52:23 +09:00
parent a816cb1fb3
commit d7d3cd28a2
4 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { flatten } from './flatten';
import { flatten } from './flatten.ts';
/**
* Utility type for recursively unpacking nested array types to extract the type of the innermost element

View File

@ -1,4 +1,4 @@
import { flatten } from './flatten';
import { flatten } from './flatten.ts';
/**
* Flattens an array up to the specified depth.

View File

@ -1,4 +1,4 @@
import { ary } from './ary';
import { ary } from './ary.ts';
/**
* Creates a function that accepts up to one argument, ignoring any additional arguments.

View File

@ -4,6 +4,10 @@ import { getSymbols } from "../compat/_internal/getSymbols.ts";
import { getTag } from "../compat/_internal/getTag.ts";
import { isPlainObject } from "./isPlainObject.ts";
declare var Buffer: {
isBuffer: (a: any) => boolean;
} | undefined;
/**
* Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.
*
@ -154,7 +158,7 @@ function areObjectsEqual(a: any, b: any, stack?: Map<any, any>) {
case float32ArrayTag:
case float64ArrayTag: {
// Buffers are also treated as [object Uint8Array]s.
if (Buffer.isBuffer(a) !== Buffer.isBuffer(b)) {
if (typeof Buffer !== 'undefined' && Buffer.isBuffer(a) !== Buffer.isBuffer(b)) {
return false;
}