# reset-object

> Reset a JavaScript Object instance to its prototype definition

Latest version **0.1.1** (published 2017-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install reset-object
pnpm add reset-object
yarn add reset-object
bun add reset-object
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-09-04 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | magicien |
| Maintainers | magicien |

## Links

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

## Recent versions

- 0.1.1 (latest) — 2017-09-04
- 0.1.0 — 2017-09-04

## README

# reset-object
Reset a JavaScript Object instance to its prototype definition

```
const resetObject = require('reset-object')

class MyClass {
  myFunc() {
    return 'this is myFunc'
  }
}

const obj = new MyClass()
obj.myFunc = () => 'new myFunc'

console.log(obj.myFunc()) // -> 'new myFunc'

resetObject(obj)

console.log(obj.myFunc()) // -> 'this is myFunc'
```

## Install

```
npm install --save reset-object
```

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