https://github.com/piyush-bhatt/is-array
Checks whether a given value is an array
https://github.com/piyush-bhatt/is-array
deno is-array typescript utility
Last synced: 2 months ago
JSON representation
Checks whether a given value is an array
- Host: GitHub
- URL: https://github.com/piyush-bhatt/is-array
- Owner: piyush-bhatt
- License: mit
- Created: 2021-01-16T07:39:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T07:59:15.000Z (over 5 years ago)
- Last Synced: 2025-10-08T17:35:53.585Z (9 months ago)
- Topics: deno, is-array, typescript, utility
- Language: TypeScript
- Homepage: https://deno.land/x/is_array
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-array
is-array package for Deno. Checks whether a given value is an array.
## Usage
```typescript
import isArray from "https://github.com/piyush-bhatt/is-array/raw/main/mod.ts";
const isArrayAnArray = isArray([1,2,3]); // true
const isObjectAnArray = isArray({}); // false
const isNumberAnArray = isArray(35); // false
const isStringAnArray = isArray('foo'); // false
const isBooleanAnArray = isArray(true); // false
const isNullAnArray = isArray(null); // false
const isUndefinedAnArray = isArray(undefined); // false
const isFunctionAnArray = isArray(() => {}); // false
```
## MIT Licensed