Skip to content

Commit 8fcaa43

Browse files
committed
fixup!
1 parent 183e364 commit 8fcaa43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/parser/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const transformTypeToReferenceLink = type => {
8181
*/
8282
const transformType = lookupPiece => {
8383
// Transform JS primitive type references into Markdown links (MDN)
84-
if (lookupPiece.toLowerCase() in DOC_TYPES_MAPPING_PRIMITIVES) {
84+
if (DOC_TYPES_MAPPING_PRIMITIVES.includes(lookupPiece.toLowerCase())) {
8585
return `${DOC_MDN_BASE_URL_JS_PRIMITIVES}#${lookupPiece.toLowerCase()}_type`;
8686
}
8787

0 commit comments

Comments
 (0)