✏️ 编辑:_baseSetToString.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/_baseSetToString.js
大小:641 B · 修改:2022-11-21 20:09:38 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
var constant = require('./constant'), defineProperty = require('./_defineProperty'), identity = require('./identity'); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString;
💾 保存
取消
保存为 UTF-8,换行统一为 LF