How to Check WordPress default blog landing page

In WordPress by Mayank Gupta

 if( is_home() && get_option('page_for_posts') ) {
$post_id = get_option('page_for_posts');
}
else
{
$post_id = $post->ID;
}
$post = get_post($post_id);