# some-own

> Like [].some but for objects

Latest version **1.0.0** (published 2017-12-09) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install some-own
pnpm add some-own
yarn add some-own
bun add some-own
```

## 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.0.0 |
| Published | 2017-12-09 |
| First published | 2017-12-09 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ryan Van Etten |
| Maintainers | ryanve |
| Keywords | javascript, iteration, iterate, utility, for-own, object, some, own |

## Links

- npm: https://www.npmjs.com/package/some-own
- Repository: https://github.com/ryanve/some-own
- Issues: https://github.com/ryanve/some-own/issues
- npm.io page: https://npm.io/package/some-own

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-12-09

## README

# [`some-own`](https://www.npmjs.com/package/some-own)
Like `[].some` but for objects.

```
npm install some-own
```

```js
const someOwn = require("some-own")
```

## API

### `someOwn(object, callback, scope: undefined)`

#### `@param`

- `object` is the object to iterate
- `callback` receives `(value, key, object)`
- `scope` is the `this` context used to `.call` callback

#### `@return boolean`

- Breaks from the loop and returns `true` if any `callback` iteration result returns truthy
- Else returns `false`


## Usage

```js
const someOwn = require("some-own")
```

```js
someOwn({x: 5, y: 0}, value => value < 0) // false
someOwn({x: -5, y: 0}, value => value < 0) // true
someOwn({x: 5, y: 0}, (value, key) => key.length === 1) // true
```

```js
let array = []
someOwn({x: 5, y: 0}, value => array.push(value)) // true
array.length // 1
```

```js
let array = []
someOwn({x: 5, y: 0}, value => array.push(value) > 10) // false
array.length // 2
```

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