Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../music-metadata/../@thi.ng/../fast-redact/../negotiator/../decamelize/../call-bind
الملفات الموجودة في هذا الـ Path:
.
..
.eslintignore
.eslintrc
.github
.nycrc
CHANGELOG.md
LICENSE
README.md
callBound.js
index.js
package.json
test

مشاهدة ملف: callBound.js

'use strict';

var GetIntrinsic = require('get-intrinsic');

var callBind = require('./');

var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));

module.exports = function callBoundIntrinsic(name, allowMissing) {
	var intrinsic = GetIntrinsic(name, !!allowMissing);
	if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
		return callBind(intrinsic);
	}
	return intrinsic;
};