Not undocumented:

http://mootools.net/docs/core/Native/String#String:test

2010/5/14 Thomas Allen <[email protected]>

> Does MooTools provide some undocumented function on String, "test"?
> I'm not referring to String.prototype.test. I ask because I have my
> own script which implements String.test(o) to return true if o is a
> String and false if not, and it fails if I include MooTools on the
> same page. Specifically, the error is identical to calling
> "someString".test() with no argument, "TypeError: a is undefined."
>
> Actually, it appears that MooTools writes all of its prototype methods
> to the native constructor, because String.contains exists only with
> MooTools loaded, etc. That is absurd.
>
> Thomas
>

Reply via email to