How to get the product detail from cart in magento 2?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$cart = $objectManager->get('\Magento\Checkout\Model\Cart'); 
 

$itemsCollection = $cart->getQuote()->getItemsCollection();

$itemsVisible = $cart->getQuote()->getAllVisibleItems();

$items = $cart->getQuote()->getAllItems();
 
foreach($items as $item) {
    echo 'ID: '.$item->getProductId().'<br />';
    echo 'Name: '.$item->getName().'<br />';
    echo 'Sku: '.$item->getSku().'<br />';
    echo 'Quantity: '.$item->getQty().'<br />';
    echo 'Price: '.$item->getPrice().'<br />';
    echo "<br />";            
}

get the product detail from cart in magento 2expoundsofttechsolution parents Until function in jQuery