aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/utils/object.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils/utils/object.ts')
-rw-r--r--shared/core-utils/utils/object.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/shared/core-utils/utils/object.ts b/shared/core-utils/utils/object.ts
deleted file mode 100644
index 9a8a98f9b..000000000
--- a/shared/core-utils/utils/object.ts
+++ /dev/null
@@ -1,15 +0,0 @@
1function pick <O extends object, K extends keyof O> (object: O, keys: K[]): Pick<O, K> {
2 const result: any = {}
3
4 for (const key of keys) {
5 if (Object.prototype.hasOwnProperty.call(object, key)) {
6 result[key] = object[key]
7 }
8 }
9
10 return result
11}
12
13export {
14 pick
15}