Add node modules and compiled JavaScript from main (#172)

Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
github-actions[bot]
2022-02-09 17:16:49 -05:00
committed by GitHub
parent ee3c5aed75
commit 08d466b6ab
8070 changed files with 1753185 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import baseCreate from './_baseCreate.js';
import isObject from './isObject.js';
// Internal function to execute `sourceFunc` bound to `context` with optional
// `args`. Determines whether to execute a function as a constructor or as a
// normal function.
export default function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
var self = baseCreate(sourceFunc.prototype);
var result = sourceFunc.apply(self, args);
if (isObject(result)) return result;
return self;
}