文件操作 - _baseKeysIn.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_baseKeysIn.js
编辑文件内容
import isObject from './isObject.js'; import isPrototype from './_isPrototype.js'; import nativeKeysIn from './_nativeKeysIn.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } export default baseKeysIn;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件