# @ganuz/apply

> Apply is package from Ganuz library

Latest version **0.1.1** (published 2019-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ganuz/apply
pnpm add @ganuz/apply
yarn add @ganuz/apply
bun add @ganuz/apply
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-04-16 |
| First published | 2019-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 98.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yisrael Eliev |
| Maintainers | yisraelx |
| Keywords | modular, modules, ponyfill, reflect, reflection, utilities, utils |

## Links

- npm: https://www.npmjs.com/package/@ganuz/apply
- Repository: https://github.com/yisraelx/ganuz
- Homepage: https://github.com/yisraelx/ganuz#readme
- Issues: https://github.com/yisraelx/ganuz/issues
- npm.io page: https://npm.io/package/@ganuz/apply

## Dependencies (3)

- [@pakal/type-of](https://npm.io/package/@pakal/type-of.md) ^0.2.1
- [@pakal/get-global](https://npm.io/package/@pakal/get-global.md) ^0.2.1
- [@pakal/is-type-of](https://npm.io/package/@pakal/is-type-of.md) ^0.2.1

## Recent versions

- 0.1.1 (latest) — 2019-04-16
- 0.1.0 — 2019-04-02

## README

# @ganuz/apply
[![Source Code](https://img.shields.io/badge/%3C%2F%3E-source_code-blue.svg)](https://github.com/yisraelx/ganuz/blob/master/modules/apply)
[![Version](https://img.shields.io/npm/v/@ganuz/apply.svg)](https://www.npmjs.com/package/@ganuz/apply)
[![MIT License](https://img.shields.io/npm/l/@ganuz/apply.svg?color=yellow)](https://github.com/yisraelx/ganuz/blob/master/LICENSE)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@ganuz/apply.svg?color=green)](https://bundlephobia.com/result?p=@ganuz/apply)
[![TypeScript](https://img.shields.io/badge/100%25-TypeScript-blue.svg)](https://www.typescriptlang.org)

**Apply is package from Ganuz library**

## Install
```sh
$ yarn add @ganuz/apply
```
Or
```sh
$ npm install --save @ganuz/apply
```

## Use
**Module**
```typescript
import {
  default as apply
} from '@ganuz/apply';
```

**Browser**
```html
<script src="https://unpkg.com/@ganuz/apply/bundle.umd.min.js"></script>
```
```typescript
let {
  apply
} = G;
```

**Examples**
```typescript
 apply(function() {}, null); // throw Error(...);
 apply(class {}, null, []); // throw Error(...);
 apply(() => 'beer', null, {}); // => 'beer'
 apply(Math.abs, null, [-1]); // => 1
 apply(function get(key) { return this[key];}, {foo: 'bar'}, ['foo']); // => 'bar'

 (function(){
     apply(() => console.log(this), null, []); // => Object
 }).call(Object));
```

### @ganuz/apply/polyfill
**Module**
```typescript
  import '@ganuz/apply/polyfill';
```

**Browser**
```html
<script src="https://unpkg.com/@ganuz/apply/polyfill/bundle.umd.min.js"></script>
```

## License
Copyright © [Yisrael Eliev](https://github.com/yisraelx),
Licensed under the [MIT license](https://github.com/yisraelx/ganuz/blob/master/LICENSE).

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