let fieldSearch = $('.header__field-search').val()
if(fieldSearch.length == ''){
console.log('меньше 1')
}
if(fieldSearch.length !== '') {
console.log('больше 1')
}
fieldSearch == ''
fieldSearch.length < 1
$('.header__field-search').on('input', function () {
const fieldValue = $(this).val();
if(!fieldValue.val().length){
console.log('0')
return;
}
if(fieldValue.length) {
console.log('больше 1')
return;
}
})