Top "Coffeescript" questions

CoffeeScript is a language that compiles into JavaScript.

Switch case statement in coffee script

I have a few different buttons that are calling the same function and I would like to have them wrapped …

if-statement coffeescript switch-statement
coffeescript check if not in array

Here's something simple to check if user is in moderator. But I want to check if user is not in …

coffeescript
for (var key in object) in CoffeeScript?

How can I use for (var key in object) in CoffeeScript? It compiles to... for (_i = 0, _len = object.length; _i &…

javascript coffeescript
Conditional operator in Coffeescript

I really like this: var value = maxValue > minValue ? minValue : maxValue; Is there something equally concise in Coffescript?

coffeescript conditional-operator
Uncaught TypeError: Cannot set property 'position' of undefined

I have this code giving me the strange error message Uncaught TypeError: Cannot set property 'position' of undefined This is …

javascript google-maps google-maps-api-3 coffeescript
Cannot find module 'coffee-script'

Trying to get a basic site set up with TowerJS as a test, but ran into this error when running …

javascript node.js coffeescript towerjs
Sublime Text CoffeeScript build system: `env: node: No such file or directory`

I'm trying to set up a CoffeeScript build system in Sublime Text 3, but I keep getting the following error: env: …

coffeescript build-automation sublimetext sublimetext3
How to access instance variables in CoffeeScript engine inside a Slim template

I have a Rails controller in which I am setting a instance variable - @user_name = "Some Username" In my .…

ruby-on-rails ruby-on-rails-3 coffeescript haml slim-lang
Exclude route from express middleware

I have a node app sitting like a firewall/dispatcher in front of other micro services and it uses a …

javascript node.js express coffeescript middleware
How to manage client-side JavaScript dependencies?

Although there are great solutions to manage dependencies on the server side, I could not find any that satisfies all …

javascript npm coffeescript dependency-management