mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
'use strict';
|
|
|
|
var GetIntrinsic = require('../GetIntrinsic');
|
|
var callBound = require('../helpers/callBound');
|
|
|
|
var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%');
|
|
|
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-call
|
|
|
|
module.exports = function Call(F, V) {
|
|
var args = arguments.length > 2 ? arguments[2] : [];
|
|
return $apply(F, V, args);
|
|
};
|