This file contains hidden or 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
Right-click on your table and pick option Backup.. | |
On File Options, set Filepath/Filename and pick PLAIN for Format | |
Ignore Dump Options #1 tab | |
In Dump Options #2 tab, check USE INSERT COMMANDS | |
In Dump Options #2 tab, check Use Column Inserts if you want column names in your inserts. | |
Hit Backup button |
This file contains hidden or 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
// Before | |
const val = otherVal !== null && otherVal !== undefined && otherVal.prop !== null && otherVal.prop !== undefined && otherVal.prop.name; | |
// With optional chaining | |
const val = otherVal?.prop?.name; | |
const name = company.employees?.[0]?.name; | |
// let's say you want to return a undefined value, that's when nullish coalescring operator comes in handy. | |
const val = otherVal?.prop?.name ?? 'Anonymous'; | |
const name = company.employees?.[0]?.name: 'User'; |
This file contains hidden or 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
const imageId = 'Mv9hjnEUHR4'; | |
const width = 600; | |
const height = 800; | |
const url = `https://source.unsplash.com/${imageId}/${width}x${height}`; |
This file contains hidden or 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
1. git checkout feature | |
2. git rebase master | |
3. Fix conflicts if any | |
4. git rebase -continue | |
5. git push origin feature -f |