Skip to content

Commit

Permalink
chore(is): 调整isEqual函数引入其他方法的方式
Browse files Browse the repository at this point in the history
  • Loading branch information
renzp94 committed Jun 21, 2024
1 parent 882e37a commit 3cb5cd9
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/is/isEqual.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import {
isArray,
isDate,
isDef,
isFunction,
isMap,
isNumber,
isObject,
isRegExp,
isSet,
isString,
isSymbol,
} from '.'
import { unique } from '../array'
import { isArray } from './isArray'
import { isDate } from './isDate'
import { isDef } from './isDef'
import { isFunction } from './isFunction'
import { isMap } from './isMap'
import { isNumber } from './isNumber'
import { isObject } from './isObject'
import { isRegExp } from './isRegExp'
import { isSet } from './isSet'
import { isString } from './isString'
import { isSymbol } from './isSymbol'

const _getSymbolKey = (v: symbol) => v.toString().slice('Symbol('.length, -1)
const _hasObjectKey = (v: string) => /^(\[object )[A-Z]{1}\w*\]$/.test(v)
Expand Down

0 comments on commit 3cb5cd9

Please sign in to comment.