WordPress at a glance
function is not described

is_cart() WC 1.0

Is_cart - Returns true when viewing the cart page.

No Hooks.

Return

true|false. Nothing.

Usage

is_cart();

Code of is_cart() WC 5.2.2

<?php
function is_cart() {
	$page_id = wc_get_page_id( 'cart' );

	return ( $page_id && is_page( $page_id ) ) || Constants::is_defined( 'WOOCOMMERCE_CART' ) || wc_post_content_has_shortcode( 'woocommerce_cart' );
}