KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there some method in coffeescript that returns true when an array has some items in it? Like method in ruby present? : [].present? false [1].present? true According to http://arcturo.github.com/library/coffeescript/07_the_bad_parts.html an array emptiness in coffeescript is determined by its length alert("Empty Array") unless [].length that seems so lame to me.
Tags (comma-separated)
Save Edits
Cancel