x-is-ducktype-array

    1.0.2 • Public • Published

    x-is-ducktype-array

    x is an array that contains only elements of given ducktype

    usage

    npm install x-is-ducktype-array

      var xString = require('x-is-string')
     
      var xDTypeArray = require('x-is-ducktype-array')
     
      xDTypeArray(xString, []) // => true
      xDTypeArray(xString, ['']) // => true
     
      xDTypeArray(xString, ['', {}]) // => false
      xDTypeArray(xString, {}) // => false

    related

    a list of other x-is-... modules can be found at

    Keywords

    none

    Install

    npm i x-is-ducktype-array

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • serapath