CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_setWrapToString.js22 linesDownload Raw Back to lodash-es
1import getWrapDetails from './_getWrapDetails.js';2import insertWrapDetails from './_insertWrapDetails.js';3import setToString from './_setToString.js';4import updateWrapDetails from './_updateWrapDetails.js';5 6/**7 * Sets the `toString` method of `wrapper` to mimic the source of `reference`8 * with wrapper details in a comment at the top of the source body.9 *10 * @private11 * @param {Function} wrapper The function to modify.12 * @param {Function} reference The reference function.13 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.14 * @returns {Function} Returns `wrapper`.15 */16function setWrapToString(wrapper, reference, bitmask) {17  var source = (reference + '');18  return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));19}20 21export default setWrapToString;22 
basant307/AI_Governance_Project · CoolFace