文件操作 - _initCloneObject.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_initCloneObject.js
编辑文件内容
import baseCreate from './_baseCreate.js'; import getPrototype from './_getPrototype.js'; import isPrototype from './_isPrototype.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * 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;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件