NeXTSTEP Programming Mastermind

    has-length

    1.1.0 • Public • Published

    has-length

    NPM version License Build status

    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

    Install

    npm i has-length

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • gummesson