# method-exists

> method_exists

Latest version **0.0.3** (published 2016-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install method-exists
pnpm add method-exists
yarn add method-exists
bun add method-exists
```

## 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.0.3 |
| Published | 2016-08-17 |
| First published | 2016-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xudong |
| Maintainers | xudong |
| Keywords | method_exists, class, method, exists, es6 |

## Links

- npm: https://www.npmjs.com/package/method-exists
- Repository: https://github.com/xudongcc/method-exists
- Homepage: https://github.com/xudongcc/method-exists#readme
- Issues: https://github.com/xudongcc/method-exists/issues
- npm.io page: https://npm.io/package/method-exists

## Recent versions

- 0.0.3 (latest) — 2016-08-17
- 0.0.2 — 2016-08-17
- 0.0.1 — 2016-08-17

## README

# method exists

bool method_exists(object *object*, string *method_name*);

## Installation

```
npm install method_exists --save
```

## Basic Usage


```
const method_exists = require('method-exists');

class TestClass {
    testMethod () {
        console.log('This is testMethod');
    }
}

var result = method_exists(new TestClass, 'testMethod');
console.log(result);    // true;

var result = method_exists(new TestClass, 'noExistMethod');
console.log(result);    // false;
```

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