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

foreach-prop

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foreach-prop - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.1.7
* improved jest config
* dependencies updated
* improved documentation
# 1.1.6

@@ -2,0 +8,0 @@

8

package.json
{
"name": "foreach-prop",
"version": "1.1.6",
"version": "1.1.7",
"description": "Array-like methods for objects",

@@ -31,3 +31,3 @@ "main": "dist/each-prop.cjs.js",

"lint": "tslint src/**/*.ts",
"clean": "rm -rf dist types coverage",
"clean": "rm -rf .cache dist types coverage",
"dev": "bundlib -dw",

@@ -39,7 +39,7 @@ "build": "npm run lint && bundlib -d",

"dependencies": {
"args-to-arr": "^1.3.3"
"args-to-arr": "^1.3.4"
},
"devDependencies": {
"@types/jest": "^24.0.13",
"bundlib": "^0.3.0",
"bundlib": "^0.3.1",
"eslint": "^5.16.0",

@@ -46,0 +46,0 @@ "jest": "^24.8.0",

@@ -7,3 +7,3 @@ # foreach-prop

> :warning: *some javascript implementations don't respect the object key order.*
> :warning: *some javascript implementations don't respect the object key order. keep that in mind when you use* `keyOf`*,* `lastKeyOf`*,* `findKey` *and* `find` *methods.*

@@ -32,3 +32,3 @@ ## Install

*[more options on jsDelivr website...](https://www.jsdelivr.com/package/npm/foreach-prop)*
*[more options...](https://www.jsdelivr.com/package/npm/foreach-prop)*

@@ -43,2 +43,4 @@ #### unpkg

*[more options...](https://unpkg.com/foreach-prop/)*
## Usage

@@ -70,3 +72,3 @@

#### forEach
### forEach

@@ -87,3 +89,3 @@ *similar to* `Array.prototype.forEach`*. It executes the provided callback function for every key-value-pair in the object. Once iniciated there is no way to stop the execution of this function, if you intend to stop the iteration at some point have a look at* [`findKey`](#findkey) *method.*

#### map
### map

@@ -104,3 +106,3 @@ *similar to* `Array.prototype.map`*. It executes the provided callback function for every key-value-pair in the object and returns a new object.*

#### keyOf
### keyOf

@@ -113,3 +115,3 @@ *similar to* `Array.prototype.indexOf`*. It returns the key of the first value that equals the provided one, or* `null` *if not found.*

#### lastKeyOf
### lastKeyOf

@@ -122,3 +124,3 @@ *similar to* `Array.prototype.lastIndexOf`*. It returns the key of the last value that equals the provided one, or* `null` *if not found.*

#### includes
### includes

@@ -131,3 +133,3 @@ *similar to* `Array.prototype.includes`*. It returns whether or not a value is present in an object.*

#### findKey
### findKey

@@ -148,3 +150,3 @@ *similar to* `Array.prototype.findIndex`*. It executes the provided callback function for every key-value-pair in the object and returns the key once the provided callback function return a truthy value. It returns* `null` *if nothing found.*

#### find
### find

@@ -175,3 +177,3 @@ *similar to* `Array.prototype.find`*. It executes the provided callback function for every key-value-pair in the object and returns the value once the provided callback function return a truthy value. It returns* `undefined` *if nothing found.*

#### filter
### filter

@@ -192,3 +194,3 @@ *similar to* `Array.prototype.filter`*. It executes the provided callback function for every key-value-pair in the object and returns a new object containing the key-value-pairs corresponding to those where the provided callback function returned a truthy value.*

#### reduce
### reduce

@@ -209,3 +211,3 @@ *similar to* `Array.prototype.reduce` *but with a major difference: if no initial value provided it defaults to* `undefined`*.*

#### some
### some

@@ -226,3 +228,3 @@ *similar to* `Array.prototype.some`*. It returns whether at least one of the key-value-pairs satisfy the provided callback function.*

#### every
### every

@@ -229,0 +231,0 @@ *similar to* `Array.prototype.every`*. It returns whether all key-value-pairs satisfy the provided callback function.*

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