Just curious, why did you check for the existence of "console" on this line:
console?.warn 'OriDomi: First argument must be a DOM element'window.console is undefined in some versions of IE if the developer tools aren't active.
For those interested in going beyond what the docs cover, the annotated source page is a great place to understand the inner workings.