Function isFlex

Returns true if the given element has a flex layout. If direction is given, then it also needs to match.

v1.2.0