Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
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

FAQs

Package last updated on 03 Apr 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc