文件操作 - _getNative.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_getNative.js
编辑文件内容
import baseIsNative from './_baseIsNative.js'; import getValue from './_getValue.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } export default getNative;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件