Closed ozkatz closed 11 years ago
Hi, sure - the double negation is just safe type-coercion to a boolean. regarding that +, It's a little shortcut to convert a date object into a timestamp.
I'd be of course happy to change any of these if they do not comply the project's style guidelines.
Was just making sure for the type-coercion, the + trick I did not know, is that ECMA5 or something ?
nope, it's actually the + unary operator. In javascript if you use + before any variable, it will actually coerce it to a number. For example, + "3"
will work the same way.
;) I knew it was the + unary operator, what I didn't know was that using it like that would automatically call 'valueOf' on a field thats pretty neat, thank you! :)
Sure, happy to see my pull request had such a positive side effect :)
;) Always nice to learn something. (Thank you)
Basically, 2 additions were made to the google2 strategy: