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

just-map-values

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-map-values - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

package.json
{
"name": "just-map-values",
"version": "1.0.2",
"description": "map an object, predicate updates values, recieves (value, key, object)",
"version": "1.0.3",
"description":
"map an object, predicate updates values, recieves (value, key, object)",
"main": "index.js",

@@ -6,0 +7,0 @@ "scripts": {

4

README.md

@@ -11,6 +11,6 @@ ## just-map-object

// predicate updates values, recieves (value, key, object)
// predicate updates values, recieves (value, key, obj)
map({a: 3, b: 5, c: 9}, (value) => value + 1); // {a: 4, b: 6, c: 10}
map({a: 3, b: 5, c: 9}, (value, key) => value + key); // {a: 3a, b: 5b, c: 9c}
map({a: 3, b: 5, c: 9}, (value, key, object) => object.b); // {a: 5, b: 5, c: 5}
map({a: 3, b: 5, c: 9}, (value, key, obj) => obj.b); // {a: 5, b: 5, c: 5}
```
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