count-true
v1.0.1
Published
'true' count with an array
Downloads
2
Readme
count-true
'true' count with an array
usage
import countTrue from 'count-true'
countTrue([1, 'a', '', false, true]) // 3
countTrue([1, 'a', '', false, true], 3) // true
countTrue([1, 'a', '', false, true], 2) // false