WordPress Function to Check if Current Post is a Specific Post Type

I’m not very sure how to phrase the title of this post but this a function that basically checks if the┬ápost type of the current post or of a given post matches the post type you have specified. I created this function to check post-type in my single.php. I had a custom post type called ...