New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

for-each-break

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

for-each-break - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

4

package.json
{
"name": "for-each-break",
"version": "0.2.0",
"version": "0.2.2",
"description": "forEach, map and filter with break and return emulation",

@@ -14,3 +14,3 @@ "main": "index.js",

"devDependencies": {
"jest": "^22.4.3"
"jest": "^24.1.0"
},

@@ -17,0 +17,0 @@ "scripts": {

@@ -19,12 +19,10 @@ # for-each-break

* `BREAK` - used to break or return from loop, using `BREAK` to break out of loop is preferred
since it communicates clear intention
* `RETURN` - used to break or return from loop, using `RETURN` to break out of loop and return a
value is preferred since it communicates clear intention
* `BREAK` - used to break or return from loop, using `BREAK` to break out of loop is preferred since it communicates clear intention
* `RETURN` - used to break or return from loop, using `RETURN` to break out of loop and return a value is preferred since it communicates clear intention
* `filter` - use to filter array like object, with early break or return: `filter.call(arrayLike, callback, thisArg)`
* `forEach` - use to loop over array like object: `forEach.call(arrayLike, callback, thisArg, defaultReturn)`
* `map` - use to map array like object, with early break or return: `map.call(arrayLike, callback, thisArg)`
* `filter` - use to filter array like object, with early break or return: `filter.call(arrayLike, callback, thisArg)`
* `filterRight` - use to filter array like object in reverse, with early break or return: `filter.call(arrayLike, callback, thisArg)`
* `forEachRight` - use to loop over array like object in reverse: `forEach.call(arrayLike, callback, thisArg, defaultReturn)`
* `mapRight` - use to map array like object in reverse, with early break or return: `map.call(arrayLike, callback, thisArg)`
* `filterRight` - use to filter array like object in reverse, with early break or return: `filter.call(arrayLike, callback, thisArg)`

@@ -31,0 +29,0 @@ <!-- @formatter:on -->

@@ -5,2 +5,3 @@ # Version History

- [0.2.2](#022)
- [0.2.0](#020)

@@ -10,2 +11,6 @@ - [0.1.0](#010)

## 0.2.2
* Fix: update dependencies
## 0.2.0

@@ -12,0 +17,0 @@

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