Saturday, August 18, 2012

Coffeescript typeof



The typeof operator, produces a string value naming the type of the
value you give it.
coffee> typeof 4.5
'number'

coffee>typeof "cat"
'string'

Source -- Smooth Coffeescript, Web Optimized

No comments:

Post a Comment