Socket
Socket
Sign inDemoInstall

all-equal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-equal

all-equal


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

all-equal

Node Version Build Status Coverage Status Npm Downlaod

NPM

Abandon ===, Use array to judge

install

# Install with npm
$ npm install all-equal --save

# Install with yarn
$ yarn add all-equal

# Install with bower
$ bower install all-equal --save

Usage

const allEqual = require('all-equal')

allEqual(['111', '222'], ['111', '333']) //=> false
allEqual(['111', '111'], ['111', '333']) //=> false
allEqual(['111', '111'], ['222', '222']) //=> true
allEqual(['111', '111', '111'], ['222', '222']) //=>true
allEqual(['111', '111', '111'], ['222', '222'], ['333', '333']) //=>true

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

CommitsContributor
1Black-Hole

Author

Black-Hole

FAQs

Package last updated on 03 May 2018

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