# object-util

> A small set of utilities for use with JavaScript Objects. Includes yet another extend() function because sometimes all you want is just an extend() funciton and not much else.

Latest version **1.1.0** (published 2017-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-util
pnpm add object-util
yarn add object-util
bun add object-util
```

## 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.1.0 |
| Published | 2017-07-15 |
| First published | 2015-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Philip Ford |
| Maintainers | pford |
| Keywords | object, extend, augment, constant |

## Links

- npm: https://www.npmjs.com/package/object-util
- Repository: https://github.com/pford68/object-util
- Issues: https://github.com/pford68/object-util/issues
- npm.io page: https://npm.io/package/object-util

## Recent versions

- 1.1.0 (latest) — 2017-07-15
- 1.0.1 — 2017-07-05
- 1.0.0 — 2015-04-02

## README

A very small set of utilities for use with JavaScript objects. 
Includes yet another version of extend() because sometimes an extend() is all you want. 

## API Documentation
### extend(that, varargs)
Just JQuery's/underscore's extend().  Mixes the properties of all of the arguments after 
the first parameter into the first parameters.  Takes an arbitrary number of objects as parameters.

### augment(that, props)
Copies properties from the second object to the first object (that) <strong>iff</strong> the property
does not exist in the first or is null.

### override(that, props)
Copies properties from the second object to the first iff the property <strong>exists</strong>
in the first.

### clone(that)
Returns a deep copy of the specified object

### isObject(that, pure)
Returns true/false for whether the specified value is an Object, and works for Objects created in other
frames as well.  If the "pure" flag is "true" then isObject() should return true only if the value belongs
exclusively to the Object type, not to any sub-type.

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