chore: add magic number comment (#2198) [ci skip]
This commit is contained in:
parent
7cc09ca8a5
commit
bac4d22614
@ -80,6 +80,7 @@ export const toTypeString = (value: unknown): string =>
|
||||
objectToString.call(value)
|
||||
|
||||
export const toRawType = (value: unknown): string => {
|
||||
// extract "RawType" from strings like "[object RawType]"
|
||||
return toTypeString(value).slice(8, -1)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user