applyAction function

Apply some action on the given object.