]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: add magic number comment (#2198) [ci skip]
authorizayl <me@izayl.com>
Tue, 13 Oct 2020 19:33:16 +0000 (03:33 +0800)
committerGitHub <noreply@github.com>
Tue, 13 Oct 2020 19:33:16 +0000 (15:33 -0400)
packages/shared/src/index.ts

index 46f1a462c9e7b750adaa5c7d310d083ccfdec980..f32988096ba6c8a462d0ed9562d003ca4c7bdbc1 100644 (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)
 }