# @util.js/objects

> JavaScript utility methods for objects

Latest version **0.41.3** (published 2023-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @util.js/objects
pnpm add @util.js/objects
yarn add @util.js/objects
bun add @util.js/objects
```

## 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.41.3 |
| Published | 2023-04-23 |
| First published | 2019-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Chris Topher |
| Maintainers | creemama |
| Keywords | object, objects, utilities, utility, utiljs |

## Links

- npm: https://www.npmjs.com/package/@util.js/objects
- Repository: https://github.com/creemama/utiljs.git#master
- Homepage: https://github.com/creemama/utiljs/tree/master#readme
- Issues: https://github.com/creemama/utiljs/issues
- npm.io page: https://npm.io/package/@util.js/objects

## Dependencies (1)

- [@babel/runtime-corejs3](https://npm.io/package/@babel/runtime-corejs3.md) 7.21.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.41.3 (latest) — 2023-04-23
- 0.41.2 — 2022-11-27
- 0.41.1 — 2021-11-08
- 0.41.0 — 2021-05-08
- 0.40.1 — 2020-11-15
- 0.40.0 — 2020-11-15
- 0.39.2 — 2019-08-03
- 0.39.1 — 2019-07-27
- 0.39.0 — 2019-05-10
- 0.38.0 — 2019-05-08
- 0.37.1 — 2019-04-20
- 0.37.0 — 2019-04-14
- 0.36.1 — 2019-03-27
- 0.36.0 — 2019-03-24
- 0.35.0 — 2019-03-20
- … 7 more at https://npm.io/package/@util.js/objects/versions

## README

# @util.js/objects

> JavaScript utility methods for [objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)

<p>
  <a href="https://www.npmjs.com/package/@util.js/objects"><img alt="NPM Status" src="https://img.shields.io/npm/v/@util.js/objects.svg?style=flat"></a>
  <a href="https://travis-ci.org/creemama/utiljs"><img alt="Travis CI Build Status" src="https://img.shields.io/travis/creemama/utiljs/master.svg?style=flat-square&label=Travis+CI"></a>
</p>

@util.js/objects is part of [Util.js](https://github.com/creemama/utiljs).

This class contains all the non-instance methods of [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) in addition to:

- guarantee
- [isDefined](#Objects+isDefined)
- merge

<a name="Objects"></a>

## Objects

JavaScript utility methods for [objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)

**Kind**: global class  
**Access**: public  
<a name="Objects+isDefined"></a>

### objects.isDefined(object) ⇒ <code>Boolean</code>

Returns whether the specified obj is defined (i.e., not null and not undefined).

In other words, this method returns false if and only if the object is
null or undefined.

This method is useful when an expression like the following might return false when you expected true:

<pre><code>
if (x) console.log("x is defined.");
</code></pre>

This happens for [0, -0, NaN, false, and the empty string ("")](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean).

**Kind**: instance method of [<code>Objects</code>](#Objects)  
**Returns**: <code>Boolean</code> - true if the given object is defined or false otherwise  
**Access**: public

| Param  | Type            | Description         |
| ------ | --------------- | ------------------- |
| object | <code>\*</code> | The object to check |

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