mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 03:34:26 +03:00
chore: Fix lint in Deno
This commit is contained in:
parent
a816cb1fb3
commit
d7d3cd28a2
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { flatten } from './flatten';
|
||||
import { flatten } from './flatten.ts';
|
||||
|
||||
/**
|
||||
* Flattens an array up to the specified depth.
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user