fluid.isMarker
This functionality is Sneak Peek status. This means that the APIs may change. We welcome your feedback, ideas, and code, but please use caution if you use this new functionality.
fluid.isMarker(toTest, type)
Determine whether an object is any marker, or a particular marker - omit the 2nd argument to detect any marker.
fluid.isMarker(toTest, type);
File name: Fluid.js
Parameters
toTest |
(Object) The object to evaluation |
type |
(String) (optional) The type of marker to check for. |
Return Value
Boolean |
Example
if (fluid.isMarker(arg, fluid.COMPONENT_OPTIONS)) { ... }
In this example, arg
is examined to determine whether or not it is the special fluid.COMPONENT_OPTIONS
marker before proceeding to carry out some action.