Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

all-equal

1.0.1 • Public • Published

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

Commits Contributor
1 Black-Hole

Author

Black-Hole

Keywords

none

install

npm i all-equal

Downloadsweekly downloads

6

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability