https://github.com/piyush-bhatt/is-object
Checks whether given value is an object
https://github.com/piyush-bhatt/is-object
deno is-object typescript utility
Last synced: 2 months ago
JSON representation
Checks whether given value is an object
- Host: GitHub
- URL: https://github.com/piyush-bhatt/is-object
- Owner: piyush-bhatt
- License: mit
- Created: 2021-01-16T07:10:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T07:55:13.000Z (over 4 years ago)
- Last Synced: 2025-03-10T00:14:39.444Z (2 months ago)
- Topics: deno, is-object, typescript, utility
- Language: TypeScript
- Homepage: https://deno.land/x/is_object
- 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-object
is-object package for Deno. Checks whether a given value is an object.
## Usage
```typescript
import isObject from "https://github.com/piyush-bhatt/is-object/raw/main/mod.ts";const isObjectAnObject = isObject({}); // true
const isArrayAnObject = isObject([]); // true
const isNumberAnObject = isObject(35); // false
const isStringAnObject = isObject('foo'); // false
const isBooleanAnObject = isObject(true); // false
const isNullAnObject = isObject(null); // false
const isUndefinedAnObject = isObject(undefined); // false
const isFunctionAnObject = isObject(() => {}); // false
```## MIT Licensed