https://github.com/awinterman/node-all
True if all values in an array are truthy
https://github.com/awinterman/node-all
Last synced: 23 days ago
JSON representation
True if all values in an array are truthy
- Host: GitHub
- URL: https://github.com/awinterman/node-all
- Owner: AWinterman
- Created: 2014-01-20T00:53:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-20T01:07:41.000Z (over 12 years ago)
- Last Synced: 2025-02-12T00:22:33.288Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Check if all values in an array are truthy:
npm install array-all
```
var all = require('array-all')
all([1, 2, 3, 4]) // -> true
all([0, 1, 2, 3]) // -> false
all(['', 'hello', 'woah']) // -> false
all(['what a wonderful life')
```