ACIL FM
Dark
Refresh
Current DIR:
/home/benbot/bot/server/node_modules/merge-descriptors
/
home
benbot
bot
server
node_modules
merge-descriptors
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
index.d.ts
635 B
chmod
View
DL
Edit
Rename
Delete
index.js
616 B
chmod
View
DL
Edit
Rename
Delete
license
1.2 MB
chmod
View
DL
Edit
Rename
Delete
package.json
961 B
chmod
View
DL
Edit
Rename
Delete
readme.md
930 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/benbot/bot/server/node_modules/merge-descriptors/readme.md
# merge-descriptors > Merge objects using their property descriptors ## Install ```sh npm install merge-descriptors ``` ## Usage ```js import mergeDescriptors from 'merge-descriptors'; const thing = { get name() { return 'John' } } const animal = {}; mergeDescriptors(animal, thing); console.log(animal.name); //=> 'John' ``` ## API ### merge(destination, source, overwrite?) Merges "own" properties from a source to a destination object, including non-enumerable and accessor-defined properties. It retains original values and descriptors, ensuring the destination receives a complete and accurate copy of the source's properties. Returns the modified destination object. #### destination Type: `object` The object to receive properties. #### source Type: `object` The object providing properties. #### overwrite Type: `boolean`\ Default: `true` A boolean to control overwriting of existing properties.
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply