šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

array-starts-with

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-starts-with

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

1.1.15
latest
Source
npm
Version published
Weekly downloads
14
-17.65%
Maintainers
1
Weekly downloads
Ā 
Created
Source

array-starts-with

MIT License Build Status

NPM status

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

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);

Keywords

array

FAQs

Package last updated on 19 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts