文件操作 - object-from-keys.js
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/extendify/src/Recommendations/utils/object-from-keys.js
编辑文件内容
// Accepts an object and a list of selected keys // and returns a new object with only the selected keys. export const objectFromKeys = (sourceObject, selectedKeys) => Object.entries(sourceObject) .filter(([key]) => selectedKeys.includes(key)) .reduce((acc, [key, value]) => { acc[key] = value; return acc; }, {});
修改文件时间
将文件时间修改为当前时间的前一年
删除文件