Стайлгайд по красивым и информативным сообщениями коммитов
https://gist.github.com/stephenparish/9941e89d80e2bc58a153
#git #styleguide #коммиты
https://gist.github.com/stephenparish/9941e89d80e2bc58a153
#git #styleguide #коммиты
Gist
Git Commit Message Conventions
Git Commit Message Conventions. GitHub Gist: instantly share code, notes, and snippets.
🌚🌚🌚
> 'yoba' && 'peka' === 'peka'
< true
> let f = (x) => x * 2
> f`22`
< 44
> 'yoba' && 'peka' === 'peka'
< true
> let f = (x) => x * 2
> f`22`
< 44
switch как вариант if-а:
switch (true) {
case Boolean(someString.match('yoba')):
return 'It is Yoba!';
case Boolean(someString === '666'):
return 'It is devil!';
default:
return 'idn';
}
switch (true) {
case Boolean(someString.match('yoba')):
return 'It is Yoba!';
case Boolean(someString === '666'):
return 'It is devil!';
default:
return 'idn';
}
Пересечение (intersection) типов в TypeScript:
https://gist.github.com/Ibro/262ee343ea3a2a244ec76b44f6723713
#typescript #types #intersection #типы
https://gist.github.com/Ibro/262ee343ea3a2a244ec76b44f6723713
#typescript #types #intersection #типы
Gist
TypeScript - intersection types simple example
TypeScript - intersection types simple example. GitHub Gist: instantly share code, notes, and snippets.
