Ad
  • Custom User Avatar

    This solution would include any non-falsy values in the count. e.g. if you pass it [true, true, false, 5, 23, Math.PI, "some cakes and a fork"], it'll count 6 sheep. Whether you'd want it to do that or not isn't clear from the instructions ;-).