mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00

* Uncomment module test that was waiting for classes to be supported * Rely on native indexOf * Replace `bind` helper with native `bind` (no shortcut necessary) * Update output * Update modules class tests * Remove helper for prototype extends * Update docs to reflect removed extends operator * Add shortcut for splice, like we have for slice
256 B
256 B
Prototypal Inheritance
In addition to supporting ES2015 classes, CoffeeScript provides a shortcut for working with prototypes. The ::
operator gives you quick access to an object’s prototype:
codeFor('prototypes', '"one_two".dasherize()')