x-is-ducktype-array

x is an array that contains only elements of given ducktype


License
MIT
Install
npm install x-is-ducktype-array@1.0.2

Documentation

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