3 ms·
I would buy is(myVariable).text within a second. Why calling two functions?
by noiv 13y ago
I would buy is(myVariable).text within a second. Why calling two functions?
- marknadal 13y agoThis is a good idea too! Here we go, I made it a tiny module: https://gist.github.com/amark/6298069 https://gist.github.com/amark/6298069 include as a dependency then use as "a.is(myVariable).text"!
- noiv 13y agoGreat, that's very readable. Now someone needs to allow .text? to indicate the predicate without 'invalid token ?' :)
- superqd 13y agoyeah, that's good too.