Skip to content

bendrucker/assert-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assert-array Build Status Greenkeeper badge

Assert that a value is an array

Install

$ npm install --save assert-array

Usage

var assertArray = require('assert-array')

assertArray([])
//=> noop

assertArray('foo')
//=> throw new Error('Expected array, got string')

License

MIT © Ben Drucker

About

Assert that a value is an array

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •