Closed TobiaszCudnik closed 11 years ago
It's an experimental feature that works the same as the underscore _.chain().
_s.upcase("foo"); // FOO
_s("foo").upcase() // RWrapper {value: "FOO"}
.downcase(). // RWrapper {value: "foo"}
.valueOf() // foo
the size methods have been added b21b9478b9d8b4b43c07d55eefbbab466fd76878.
Example from the main page isn't working because of missing
size
method, all in 'god mode'. Code:After some shallow debugging I suspect RWrapper to mess around with it.
BTW what's the point of these lines:
It seems they will be executed each time I create a string and because of the outer scope it'll be nested one level deeper every time. Am i missing something?