CoffeeScript is a JavaScript preprocessor; there is no additional standard library. This means that if you want to manipulate the DOM, you will do it the same way as in JavaScript.
You can use any JavaScript library, such as jQuery with CoffeeScript, as an alternative, you can directly use the variable document:
element.parentNode.removeChild(element) for element in document.getElementsByClassName('some-class')
( , )
element.parentNode.removeChild(element) for element in document.getElementsByTagName('*') when element.className = 'some-class'
, , :
for element in document.getElementsByTagName('*')
if element.className is 'some-class'
element.parentNode.removeChild(element)
CoffeeScript.org:
CoffeeScript: " JavaScript". -- JS, . JavaScript CoffeeScript ( ).