Is there an easy way to determine which breakpoint "mode" is currently in place using Javascript?
For example I am using SASS to set the view according to the $small-only, $medium-only etc. variables. However if the user has resized the browser and the $small-only breakpoint is being used I'd like to be able to query this in Javascript. So something like the following:
if ($small) {
// do something
} else {
// do something different
}