Ш
const item = {
count 0;
}
const store = []
item.count += 1
store = [...store, item]
Size: a a a
Ш
const item = {
count 0;
}
const store = []
item.count += 1
store = [...store, item]
Ш
Ш
Ш
IS
Ш
Ш
E
IS
E
IS
E
D
const splitUserName = userName !== null ? userName.match(/[А-Я][а-я]+/g).join(' ') : ''
TypeError: Cannot read property 'join' of null
IS
D
const splitUserName = userName.match(/[А-Я][а-я]+/g)
? userName.match(/[А-Я][а-я]+/g).join(' ')
: ''
IS
IS
D