# miniprogram-properties-reset

> ```sh yarn add miniprogram-properties-reset ```

Latest version **1.0.1** (published 2021-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install miniprogram-properties-reset
pnpm add miniprogram-properties-reset
yarn add miniprogram-properties-reset
bun add miniprogram-properties-reset
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-07-09 |
| First published | 2021-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | joenix |

## Links

- npm: https://www.npmjs.com/package/miniprogram-properties-reset
- npm.io page: https://npm.io/package/miniprogram-properties-reset

## Recent versions

- 1.0.1 (latest) — 2021-07-09
- 1.0.0 — 2021-07-09

## README

# miniprogram-properties-reset

```sh
yarn add miniprogram-properties-reset
```

```js
// in Miniprogram
const MPReset = require("miniprogram-properties-reset")

Component({
  behaviors: [MPReset],

  properties: {
    iString: String,
    iNumber: Number,
    iBoolean: Boolean,
    iArray: Array,
    iObject: Object,
    iJson: {
      type: Object,
      value: {
        key: `value`
      }
    }
  },

  ready() {
    const mock = this.APTReset({
      iString: 100,
      iNumber: `miniprogram`,
      iBoolean: true,
      iArray: ["a", "b", "c"],
      iObject: null,
      iJson: null
    })

    console.log(mock)

    /**
     * {
     *   iString: '',
     *   iNumber: 0,
     *   iBoolean: true,
     *   iArray: ['a', 'b', 'c'],
     *   iObject: {},
     *   iJson: {
     *     key: `value`
     *   }
     * }
     */
  }
})
```

```js
// Built-In

{
  [String]: '',
  [Number]: 0,
  [Boolean]: false,
  [Array]: [],
  [Object]: {},
  [Function]: function() {}
}
```

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