The compiler will optimize this for you:

    $ coffee -bep 's.type in ["text/coffeescript", "text/coffeescript+literate"]'
    var _ref;
    
    (_ref = s.type) === "text/coffeescript" || _ref === "text/coffeescript+literate";