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 2.0.0 to 2.1.0

14

index.d.ts

@@ -1,3 +0,11 @@

// Definitions by: Roman Lerchster <https://github.com/wa4-fearless-otter>
declare function map<T extends {}>(item: T, callback: (value: any, key: string, object: T) => any): {};
export default map;
// Original definitions by: Roman Lerchster <https://github.com/wa4-fearless-otter>
declare function mapValues<TInput extends {}, TMappedValue>(
item: TInput,
callback: (
value: TInput[keyof TInput],
key: keyof TInput,
object: TInput
) => TMappedValue
): { [k in keyof TInput]: ReturnType<typeof callback> };
export default mapValues;
import map from './index'
const obj = {foo: {bar: []}};
const obj = {foo: 1};

@@ -5,0 +5,0 @@ // OK

{
"name": "just-map-values",
"version": "2.0.0",
"version": "2.1.0",
"description": "map an object, predicate updates values, receives (value, key, object)",

@@ -5,0 +5,0 @@ "main": "index.js",

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