# @pakal/assign

> Assign is package from Pakal library

Latest version **0.2.1** (published 2019-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pakal/assign
pnpm add @pakal/assign
yarn add @pakal/assign
bun add @pakal/assign
```

## 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.2.1 |
| Published | 2019-04-15 |
| First published | 2018-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 43.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yisrael Eliev |
| Maintainers | yisraelx |
| Keywords | utils, utilities, modules, modular |

## Links

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

## Dependencies (1)

- [@pakal/for-each](https://npm.io/package/@pakal/for-each.md) ^0.2.1

## Recent versions

- 0.2.1 (latest) — 2019-04-15
- 0.2.0 — 2019-03-31
- 0.1.1 — 2018-07-14
- 0.1.0 — 2018-07-03

## README

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

**Assign is package from Pakal library**

## Install
```sh
$ yarn add @pakal/assign
```
Or
```sh
$ npm install --save @pakal/assign
```

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

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

**Examples**
```typescript
 let target = {};
 let a = {length: 4,3: 'c', 5: 'e'};
 let b = 'foo';
 let c = [55, 33];
 let d = {1: 'a', foo: 'bar'};"

 assign(target, a, b, c, d) === target; // => true
 console.log(target);
 // => {
 //  0: 55
 //  1: "a"
 //  2: "o"
 //  3: "c"
 //  foo: "bar"
 // }
```
```typescript
 let target = {a: 2, c: 3};
 let source = {a: 1, b: 2};

 assign(target, source); // => {a: 1, b: 2, c: 3}
```

*Note: Unlike `Object.assign` this method will assign `ArrayLike` as `Array`.*


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

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