@livechat/data-utils
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1073,4 +1073,4 @@ /** | ||
*/ | ||
function pick(props, obj) { | ||
return props.reduce(function (acc, prop) { | ||
function pick(keys, obj) { | ||
return keys.reduce(function (acc, prop) { | ||
acc[prop] = obj[prop]; | ||
@@ -1077,0 +1077,0 @@ return acc; |
@@ -1077,4 +1077,4 @@ 'use strict'; | ||
*/ | ||
function pick(props, obj) { | ||
return props.reduce(function (acc, prop) { | ||
function pick(keys, obj) { | ||
return keys.reduce(function (acc, prop) { | ||
acc[prop] = obj[prop]; | ||
@@ -1081,0 +1081,0 @@ return acc; |
@@ -1079,4 +1079,4 @@ (function (global, factory) { | ||
*/ | ||
function pick(props, obj) { | ||
return props.reduce(function (acc, prop) { | ||
function pick(keys, obj) { | ||
return keys.reduce(function (acc, prop) { | ||
acc[prop] = obj[prop]; | ||
@@ -1083,0 +1083,0 @@ return acc; |
{ | ||
"name": "@livechat/data-utils", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Collection of utility functions", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -8,3 +8,3 @@ import type { AnyObject } from './types'; | ||
*/ | ||
export default function omit<T extends AnyObject, K extends keyof T>(keys: K[], obj: T): Omit<T, K>; | ||
export default function omit<T extends AnyObject, K extends keyof T>(keys: readonly K[], obj: T): Omit<T, K>; | ||
//# sourceMappingURL=omit.d.ts.map |
@@ -8,3 +8,3 @@ import type { AnyObject } from './types'; | ||
*/ | ||
export default function pick<T extends AnyObject, K extends keyof T>(props: K[], obj: T): Pick<T, K>; | ||
export default function pick<T extends AnyObject, K extends keyof T>(keys: readonly K[], obj: T): Pick<T, K>; | ||
//# sourceMappingURL=pick.d.ts.map |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
256493