has-length
v1.1.0
Published
Check if an array, an object or a string has a length.
Downloads
2
Maintainers
Readme
has-length
Check if an array, an object or a string has a length.
Installation
npm install has-length
Usage
var hasLength = require('has-length')
hasLength('string') // => true
hasLength([1]) // => true
hasLength({ one: 1 }) // => true
hasLength('') // => false
hasLength([]) // => false
hasLength({}) // => false