Files
NapCatQQ/.pnpm-store/v3/files/b6/03ce0d5f7484d684f04abea1cf4395dfe6265d69d4fa2b5b3650e9dbbb028bda2c48f646027b213f33da2c5414ebaecc83d9eac4de0ffd972fb7482f3ed812
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
484 B
Plaintext

import baseCreate from './_baseCreate.js';
import getPrototype from './_getPrototype.js';
import isPrototype from './_isPrototype.js';
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(getPrototype(object))
: {};
}
export default initCloneObject;