Skip to content

Instantly share code, notes, and snippets.

View vowill's full-sized avatar
🏠
Working from home

Richard vowill

🏠
Working from home
  • private
  • Germany
  • 21:36 (UTC +01:00)
View GitHub Profile
var schedule1, Pos_um_0_Uhr, Pos_um_24_Uhr, Werte_pro_Stunde, Nummer_des_Datenwerts;
function textCount(haystack, needle) {
if (needle.length === 0) {
return haystack.length + 1;
} else {
return haystack.split(needle).length - 1;
}
}