# array-starts-with

> The same as String.prototype.startsWith but comparing array elements instead of string characters

Latest version **1.1.15** (published 2023-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-starts-with
pnpm add array-starts-with
yarn add array-starts-with
bun add array-starts-with
```

## 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.15 |
| Published | 2023-03-19 |
| First published | 2018-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | oprogramador |
| Maintainers | oprogramador |
| Keywords | array, startsWith, starts, with |

## Links

- npm: https://www.npmjs.com/package/array-starts-with
- Repository: https://github.com/oprogramador/array-starts-with
- Homepage: https://github.com/oprogramador/array-starts-with#readme
- Issues: https://github.com/oprogramador/array-starts-with/issues
- npm.io page: https://npm.io/package/array-starts-with

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.15 (latest) — 2023-03-19
- 1.1.14 — 2023-01-01
- 1.1.13 — 2022-12-30
- 1.1.12 — 2022-04-05
- 1.1.11 — 2022-04-05
- 1.1.10 — 2022-04-05
- 1.1.9 — 2021-09-04
- 1.1.8 — 2021-08-12
- 1.1.7 — 2021-08-08
- 1.1.6 — 2021-06-14
- 1.1.5 — 2021-05-31
- 1.1.4 — 2021-05-29
- 1.1.3 — 2021-04-04
- 1.1.2 — 2021-04-03
- 1.1.1 — 2021-03-31
- … 13 more at https://npm.io/package/array-starts-with/versions

## README

# array-starts-with

[![MIT License](https://img.shields.io/badge/license-mit-green.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.com/oprogramador/array-starts-with.svg?branch=master)](https://travis-ci.com/oprogramador/array-starts-with
)

[![NPM status](https://nodei.co/npm/array-starts-with.png?downloads=true&stars=true)](https://npmjs.org/package/array-starts-with
)

The same as String.prototype.startsWith but comparing array elements instead of string characters

## installation
with npm:
```
npm i --save array-starts-with
```
or with yarn:
```
yarn add array-starts-with
```

## usage
```js
import arrayStartsWith from 'array-starts-with'
// or:
// const arrayStartsWith = require('array-starts-with').default;

const base = ['foo', 'bar', 'baz'];
const start = ['foo', 'bar'];

const result = arrayStartsWith(base, start);

expect(result).to.equal(true);
```

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