Skip to main content
fixed grammar
Source Link
Quill
  • 12.1k
  • 5
  • 41
  • 94
table_with_headers = $(this.dom.table).find("thead tr th").map(-> $(this).text() ).get().join("\t") 

Can one write it nicer? I especially dontdon't like the inner function in map syntax enforced by coffescriptCoffeeScript and jqueryjQuery.

table_with_headers = $(this.dom.table).find("thead tr th").map(-> $(this).text() ).get().join("\t") 

Can one write it nicer? I especially dont like the inner function in map syntax enforced by coffescript and jquery.

table_with_headers = $(this.dom.table).find("thead tr th").map(-> $(this).text() ).get().join("\t") 

Can one write it nicer? I especially don't like the inner function in map syntax enforced by CoffeeScript and jQuery.

No need for technology names in the subject
Link
konijn
  • 34.4k
  • 5
  • 71
  • 267

jQuery coffescript get TH text seperated by Get <TH> texts into a tab separated string

Source Link

jQuery coffescript get TH text seperated by tab

table_with_headers = $(this.dom.table).find("thead tr th").map(-> $(this).text() ).get().join("\t") 

Can one write it nicer? I especially dont like the inner function in map syntax enforced by coffescript and jquery.