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

just-pick

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-pick - npm Package Compare versions

Comparing version 2.2.1 to 3.0.0

2

index.d.ts
// Definitions by: Peter Safranek <https://github.com/pe8ter>
declare function pick<T, U extends keyof T>(obj: T, select: U[]): Pick<T, U>;
declare function pick<T, U extends keyof T>(obj: T, select1: U, ...selectn: U[]): Pick<T, U>;
export = pick;
export default pick;

@@ -1,2 +0,2 @@

import pick = require("./index");
import pick from './index'

@@ -21,20 +21,20 @@ const a = "a";

// @ts-expect-error
pick(obj, [a, b, c]);
pick(obj, [a, b, c]);
// @ts-expect-error
pick(obj, a, b, c);
pick(obj, a, b, c);
// @ts-expect-error
pick();
pick();
// @ts-expect-error
pick(obj);
pick(obj);
// @ts-expect-error
pick(obj, 0);
pick(obj, 0);
// @ts-expect-error
pick(obj, false);
pick(obj, false);
// @ts-expect-error
pick(obj);
pick(obj);
// @ts-expect-error
pick(obj);
pick(obj);
// @ts-expect-error
pick(obj, {});
pick(obj, {});
// @ts-expect-error
pick(obj, () => {});
pick(obj, () => {});
{
"name": "just-pick",
"version": "2.2.1",
"version": "3.0.0",
"description": "copy an object but with only the specified keys",

@@ -23,2 +23,2 @@ "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