basant307/AI_Governance_Project
048
1'use strict';2 3var setFunctionLength = require('set-function-length');4 5var $defineProperty = require('es-define-property');6 7var callBindBasic = require('call-bind-apply-helpers');8var applyBind = require('call-bind-apply-helpers/applyBind');9 10module.exports = function callBind(originalFunction) {11 var func = callBindBasic(arguments);12 var adjustedLength = originalFunction.length - (arguments.length - 1);13 return setFunctionLength(14 func,15 1 + (adjustedLength > 0 ? adjustedLength : 0),16 true17 );18};19 20if ($defineProperty) {21 $defineProperty(module.exports, 'apply', { value: applyBind });22} else {23 module.exports.apply = applyBind;24}25 