How Modernizr helps in cross browser testing of web apps?

I wanted to know how Modernizr helps in cross browser testing of web apps. Can anyone please peovide explanation regarding that.