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

filter-anything

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filter-anything - npm Package Compare versions

Comparing version 2.1.7 to 2.1.8

2

dist/index.cjs.js

@@ -74,3 +74,3 @@ 'use strict';

* @param {T} obj the target object to pick props from
* @param {K[]} keys the prop names you want to keep
* @param {K[]} keys an array of prop names you want to keep - allows dot-notation for nested props, eg. `nested.prop` will keep just `{ nested: { prop: 1 } }`
* @returns {O.Pick<T, K>} a new object with just the picked props

@@ -77,0 +77,0 @@ */

@@ -70,3 +70,3 @@ import { isPlainObject } from 'is-what';

* @param {T} obj the target object to pick props from
* @param {K[]} keys the prop names you want to keep
* @param {K[]} keys an array of prop names you want to keep - allows dot-notation for nested props, eg. `nested.prop` will keep just `{ nested: { prop: 1 } }`
* @returns {O.Pick<T, K>} a new object with just the picked props

@@ -73,0 +73,0 @@ */

{
"name": "filter-anything",
"version": "2.1.7",
"version": "2.1.8",
"sideEffects": false,

@@ -5,0 +5,0 @@ "description": "A simple (TypeScript) integration of \"pick\" and \"omit\" to filter props of an object",

@@ -11,3 +11,3 @@ import { O } from 'ts-toolbelt'

* @param {T} obj the target object to pick props from
* @param {K[]} keys the prop names you want to keep
* @param {K[]} keys an array of prop names you want to keep - allows dot-notation for nested props, eg. `nested.prop` will keep just `{ nested: { prop: 1 } }`
* @returns {O.Pick<T, K>} a new object with just the picked props

@@ -14,0 +14,0 @@ */

@@ -9,3 +9,3 @@ import { O } from 'ts-toolbelt';

* @param {T} obj the target object to pick props from
* @param {K[]} keys the prop names you want to keep
* @param {K[]} keys an array of prop names you want to keep - allows dot-notation for nested props, eg. `nested.prop` will keep just `{ nested: { prop: 1 } }`
* @returns {O.Pick<T, K>} a new object with just the picked props

@@ -12,0 +12,0 @@ */

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