const errors = [
{
isEmptyError: false,
textError: ''
},
{
minLengthError: false,
textError: '',
},
];
const newArray = errors.push({
minLengthError: false,
textError: 'Something',
});
console.log(newArray)
console.log(errors)