文件操作 - shim.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/atom/resources/app/apm/node_modules/es5-ext/array/#/find-index/shim.js
编辑文件内容
"use strict"; var callable = require("../../../object/valid-callable") , ensureValue = require("../../../object/valid-value") , some = Array.prototype.some , apply = Function.prototype.apply; module.exports = function (predicate/*, thisArg*/) { var k, self; self = Object(ensureValue(this)); callable(predicate); return some.call( self, function (value, index) { if (apply.call(predicate, this, arguments)) { k = index; return true; } return false; }, arguments[1] ) ? k : -1; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件