# es-logical-optional-chaining

> Optional chaining operator

Latest version **1.0.0** (published 2026-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install es-logical-optional-chaining
pnpm add es-logical-optional-chaining
yarn add es-logical-optional-chaining
bun add es-logical-optional-chaining
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-01-18 |
| First published | 2026-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | me |
| Maintainers | tj-commits |
| Keywords | 10xly |

## Links

- npm: https://www.npmjs.com/package/es-logical-optional-chaining
- Repository: https://github.com/10xly/es-logical-optional-chaining
- Homepage: https://github.com/10xly/es-logical-optional-chaining#readme
- Issues: https://github.com/10xly/es-logical-optional-chaining/issues
- npm.io page: https://npm.io/package/es-logical-optional-chaining

## Dependencies (6)

- [is-](https://npm.io/package/is-.md) ^1.0.0
- [yanoop](https://npm.io/package/yanoop.md) ^1.0.0
- [array-reduce-x](https://npm.io/package/array-reduce-x.md) ^2.1.0
- [construct-new-second](https://npm.io/package/construct-new-second.md) ^1.0.0
- [undefined-is-a-function](https://npm.io/package/undefined-is-a-function.md) ^0.1.0
- [important-extremely-useful-classes](https://npm.io/package/important-extremely-useful-classes.md) ^3.1.0

## Recent versions

- 1.0.0 (latest) — 2026-01-18

## README

# es-logical-optional-chaining
optional chaining operator in fp

## wai?
Ever try to grab something like `user.profile.name`, but your app crashes because `profile` doesn't exist, and then your boss threatens to fire you if you don't take on every single position and not make a single typo? This package provides a solution. Now `user.profile.name` can return undefined silently if `profile` doesn't exist.

## hau?
first you need to install
```bash
npm install es-logical-optional-chaining
```
then heres an example:
```js
const optionalChaining = require("es-logical-optional-chaining")

const user = {} // profile is missing

const nonexistent = optionalChaining(user, ["profile", "name"]) // doesnt crash
```

## wau!
sho support by contributing

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