Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

array-every

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-every

Returns true if the callback returns truthy for all elements in the given array.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

array-every NPM version

Returns true if the callback returns truthy for all elements in the given array.

Based on mout's implementation of every.

Install

Install with NPM

Install with npm

npm i array-every --save

Install with Bower

Install with bower

bower install array-every --save

Usage

var every = require('array-every');

every(['a', 'b', 'c'], function (ele) {
  return ele === 'a';
});
//=> false

every(['a', 'a', 'a'], function (ele) {
  return ele === 'a';
});
//=> true
  • array-every: Returns true if the callback returns truthy for all elements in the given array.
  • array-slice: Array-slice method. Slices array from the start index up to, but not including, the endmore
  • array-unique: Return an array free of duplicate values. Fastest ES5 implementation.
  • filter-array: Iterates over the elements in an array, returning an array with only the elements for… more
  • index-of: Get the index of the first element in an array that returns truthy for the… more
  • make-iterator: Convert an argument into a valid iterator. Based on the .makeIterator() implementation in mout https://github.com/mout/mout.

Running tests

Install dev dependencies:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 07, 2015.

Keywords

FAQs

Package last updated on 08 May 2015

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