Using Modernizr with Flexbox

The Modernizr feature-detection script now includes four tests for flexbox support, which you can use to target browsers with varying levels of support more precisely. Last week, Modernizr was updated to version 3, and with that upgrade gained some useful new tests for flexbox support.

Source