JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q44981F
  • License MIT

Checks whether a value is an array or not.

Package Exports

  • @fav/type.is-array

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fav/type.is-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@fav/type.is-array NPM version MIT License

Checks whether a value is an array or not.

"fav" is an abbreviation of "favorite" and also the acronym of "for all versions". This package is intended to support all Node.js versions and many browsers as possible. At least, this package supports NodeJS >= v0.10 and major Web browsers: Chrome, Firefox, IE11, Edge, Vivaldi and Safari.

Install

To install from npm:

$ npm install --save @fav/type.is-array

When you use npm < 2.7.0 which is not support scoped package, you should install fav-type from github.

When you want to use this on a Web browser, you can install @fav/type from npm and use fav.type.isArray in it.

Usage

For Node.js, when installing @fav/type.is-array from npm:

var isArray = require('@fav/type.is-array');
isArray([1, 2, 3]); // => true

API

isArray(value) : boolean

Checks if value is an array.

Parameter:

Parameter Type Description
value any The value to be checked.

Return:

True, if value is an array.

Type: boolean

License

Copyright (C) 2017 Takayuki Sato

This program is free software under MIT License. See the file LICENSE in this distribution for more details.