tmuxa() { tmux a -t $1 }
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
// Example using Objects.assign | |
const changeName = (user, newName) => Object.assign({}, user, { | |
name: newName | |
}) | |
// Example using destructuring assignment | |
const changeName = (user, newName) => ({ | |
...user, | |
name: newName, | |
}) |
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
const user = { | |
name: 'John Due', | |
birthdate: '1988-08-15', | |
} | |
const changeName = (user, newName) => { | |
return { | |
...user, // destructuring user object | |
name: newName, // override name attribute with new name | |
} |
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
const user = { | |
name: 'John Due', | |
birthdate: '1988-08-15', | |
} | |
const changeName = (user, newName) => { | |
const newUser = user | |
newUser.name = newName | |
return newUser | |
} |
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
// Example using Objects.assign | |
const deposit = (account, value) => Object.assign({}, account, { | |
balance: account.balance + value | |
}) |
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
// Example using destructuring assignment | |
const deposit = (account, value) => ({ | |
...account, | |
balance: account.balance + value, | |
}) |
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
const account = { | |
balance: 1000, | |
bank: '', | |
number: '', | |
} | |
const deposit = (account, value) => { | |
const newAccount = account | |
newAccount.balance = account.balance + value | |
return newAccount |
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
const account = { | |
balance: 1000, | |
bank: '', | |
number: '', | |
} | |
const deposit = (account, value) => { | |
return { | |
...account, | |
balance: account.balance + value, |
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
.avatar-size { | |
max-width: 70px; | |
max-height: 70px; | |
height: 70px; | |
width: auto; | |
object-fit: cover; | |
} |
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global color.ui auto
NewerOlder