docker inspect myapp | grep --ignore-case log
docker inspect myapp | grep Log
выведет кое-что.docker inspect --format='{{.LogPath}}' myapp
const last = mappedPath.pop();
mappedPath = this.newParentPath.split(', ');
if (last) {
mappedPath.push(???);
}
mappedPath
может быть и пустым, и тогда pop()
вернёт undefined
. Как, врочем, и начальный mappedPath[mappedPath.length - 1]
mappedPath
ожидает, что все элементы будут строками.$('.search__input').on('input', searchInput);
const input = $('.search__input'); // один для всех
const searchInput = () => {
if (input.val()) {
// ...
}
input.on('input', searchInput);
(чуть обновил коммент) blackQueen ... whitePawn ... whiteKing