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.1 to 1.0.2

6

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

@@ -10,3 +10,3 @@ "scripts": {

"repository": "https://github.com/angus-c/just",
"keywords": ["object", "map", "value", "no-dependencies", "just"],
"keywords": ["object", "map", "values", "no-dependencies", "just"],
"author": "Angus Croll",

@@ -13,0 +13,0 @@ "license": "MIT",

## just-map-object
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing.
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

@@ -9,6 +9,5 @@

```js
import map from 'just-map-object';
import map from 'just-map-values';
// map an object, applying the predicate to the value
// like just-map-object, but (value, key, object) is passed to the predicate
// predicate updates values, recieves (value, key, object)
map({a: 3, b: 5, c: 9}, (value) => value + 1); // {a: 4, b: 6, c: 10}

@@ -15,0 +14,0 @@ map({a: 3, b: 5, c: 9}, (value, key) => value + key); // {a: 3a, b: 5b, c: 9c}

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