# @specialblend/is-constructable

> check if provided function is constructable (can be called with new keyword)

Latest version **0.0.1** (published 2019-03-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @specialblend/is-constructable
pnpm add @specialblend/is-constructable
yarn add @specialblend/is-constructable
bun add @specialblend/is-constructable
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-03-24 |
| First published | 2019-03-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | cj@specialblend.net |
| Maintainers | __specialblend__ |
| Keywords | function, class, constructor, constructable, new |

## Links

- npm: https://www.npmjs.com/package/@specialblend/is-constructable
- Repository: https://specialblend@github.com/specialblend/is-constructable
- Homepage: https://github.com/specialblend/is-constructable#readme
- Issues: https://github.com/specialblend/is-constructable/issues
- npm.io page: https://npm.io/package/@specialblend/is-constructable

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-03-24
- 0.0.0 — 2019-03-24

## README

# is-constructable
check if provided function is constructable (can be called with new keyword)

### install
```
npm i @specialblend/is-constructable
```

### example

```javascript
import isConstructable from '@specialblend/is-constructable'

isConstructable('foo') // false
isConstructable(true) // false
isConstructable(false) // false
isConstructable(null) // false
isConstructable(undefined) // false
isConstructable(Symbol('foo')) // false
isConstructable(function *generatorFoo() {}) // false

isConstructable(Boolean) // true
isConstructable(Number) // true
isConstructable(String) // true
isConstructable(Array) // true
isConstructable(Object) // true
isConstructable(Promise) // true
isConstructable(class Foo {}) // true
isConstructable(function foo() {}) // true

```

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