JavaScript check if a string is valid git commit ID using check-more-types library In this JavaScript tutorial we learn how to check whether a given string is a valid 40 digit SHA git commit ID using the check-more-types library.