temp
This commit is contained in:
12
bun-server/index.ts
Normal file
12
bun-server/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { pick } from 'es-toolkit'
|
||||
|
||||
const obj = {
|
||||
a: {
|
||||
b: {
|
||||
c: 42
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const c = pick(obj, ['a'])
|
||||
console.log(c) // 42
|
||||
Reference in New Issue
Block a user