# ts-object-utils

> Best type safe way to check null or undefined in typescript

Latest version **0.0.5** (published 2017-11-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install ts-object-utils
pnpm add ts-object-utils
yarn add ts-object-utils
bun add ts-object-utils
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-11-21 |
| First published | 2017-11-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | naqvitalha |
| Maintainers | naqvitalha |

## Links

- npm: https://www.npmjs.com/package/ts-object-utils
- Repository: https://github.com/naqvitalha/ts-object-utils
- Homepage: https://github.com/naqvitalha/ts-object-utils#readme
- Issues: https://github.com/naqvitalha/ts-object-utils/issues
- npm.io page: https://npm.io/package/ts-object-utils

## Recent versions

- 0.0.5 (latest) — 2017-11-21
- 0.0.4 — 2017-11-21
- 0.0.3 — 2017-11-21
- 0.0.2 — 2017-11-21
- 0.0.1 — 2017-11-20

## README

# ts-object-utils
Best way to check for null or undefined in typescript using a type guard. Other types also supported.
Can strip out null or undefine or complex types like T | null etc.

`npm install --save ts-object-utils`

To use: 
```js
import ObjectUtil from "ts-object-utils";

let a: number | null = 0;

console.log(a*4); //Error: a might be null

if(!ObjectUtil.isNullOrUndefined(a)){
    console.log(a*4); //Works
}
```

---
_Source: https://npm.io/package/ts-object-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
