stasm / innerself

◘ A tiny view + state management solution using innerHTML
ISC License
778 stars 28 forks source link

filter all out falsey values #8

Closed ivancuric closed 7 years ago

stasm commented 7 years ago

Thanks!

stasm commented 7 years ago

I realized that in case when a number is interpolated and its value is 0, we probably still want to show it :) I restricted the filter to only rejecting null and undefined: https://github.com/stasm/innerself/commit/5c57686175b3fe90f149a6cf3e0fba96011d5328.

ivancuric commented 7 years ago

Makes sense, didn't think of that edge case.