CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
index.js25 linesDownload Raw Back to call-bind
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 
basant307/AI_Governance_Project · CoolFace