Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

x-is-array

Matt-Esch255.6k0.1.0

Simple array test

readme

x-is-array

Simple array test

Example

var isArray = require("x-is-array")

isArray([])
// -> true

isArray("hello")
// -> false

isArray("")
// -> false

isArray(9)
// -> false

isArray(true)
// -> false

isArray(new Date())
// -> false

isArray({
// -> false

isArray(null)
// -> false

isArray(undefined)
// -> false

Installation

npm install x-is-array

Contributors

  • Matt-Esch

MIT Licenced