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