This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Salaries = Record<string, number>; | |
const salaries: Salaries = { | |
John: 100, | |
}; | |
salaries.adsasddas; // ❌ typescript won't yell at us | |
const salariesStrict = { | |
John: 100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste to the console | |
let me = { | |
fullName: "Dominik Jasek", | |
thisInArrow: () => { | |
console.log("fullName inside arrow function:", this.fullName); // no 'this' binding here | |
}, | |
thisInRegular() { | |
console.log("fullName inside regular function:", this.fullName); // 'this' binding works here | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@strapi/admin/admin/src/components/LeftMenu/index.js b/node_modules/@strapi/admin/admin/src/components/LeftMenu/index.js | |
index 23b936b..8042d01 100644 | |
--- a/node_modules/@strapi/admin/admin/src/components/LeftMenu/index.js | |
+++ b/node_modules/@strapi/admin/admin/src/components/LeftMenu/index.js | |
@@ -39,7 +39,7 @@ const LinkUser = styled(RouterNavLink)` | |
&:hover { | |
background: ${({ theme, logout }) => | |
- logout ? theme.colors.danger100 : theme.colors.primary100}; | |
+ logout ? theme.colors.danger100 : theme.colors.primary100}; |