chore: add magic number comment (#2198) [ci skip]

This commit is contained in:
izayl 2020-10-14 03:33:16 +08:00 committed by GitHub
parent 7cc09ca8a5
commit bac4d22614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}