PS
а не импортами функций
Size: a a a
PS
🦉
🦉
result.or(another)
import { or } from ‘./result’
or(result, another)
PS
result.or(another)
import { or } from ‘./result’
or(result, another)
🦉
return result.or(another)
import { Result } from ‘./result’
return Result.or(result, another)
🦉
array.pop()
vs pop(array)
˸A
array.pop()
vs pop(array)
this
!!!🦉
this
!!!🦉
this
!!!PS
🦉
˸A
this as const
- а так, если вам нравится мутабельность - то ок🦉
this as const
- а так, если вам нравится мутабельность - то ок🦉
V
В
˸A
this
- это всего лишь дополнительный implicit параметр функции (можно подставить другой this
, если нужно)PS
this as const
- а так, если вам нравится мутабельность - то ок˸A