CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_baseSetToString.js23 linesDownload Raw Back to lodash-es
1import constant from './constant.js';2import defineProperty from './_defineProperty.js';3import identity from './identity.js';4 5/**6 * The base implementation of `setToString` without support for hot loop shorting.7 *8 * @private9 * @param {Function} func The function to modify.10 * @param {Function} string The `toString` result.11 * @returns {Function} Returns `func`.12 */13var baseSetToString = !defineProperty ? identity : function(func, string) {14  return defineProperty(func, 'toString', {15    'configurable': true,16    'enumerable': false,17    'value': constant(string),18    'writable': true19  });20};21 22export default baseSetToString;23 
basant307/AI_Governance_Project · CoolFace