source: frontend/node_modules/call-bind/callBound.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 413 bytes
Line 
1'use strict';
2
3var GetIntrinsic = require('get-intrinsic');
4
5var callBind = require('./');
6
7var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
8
9module.exports = function callBoundIntrinsic(name, allowMissing) {
10 var intrinsic = GetIntrinsic(name, !!allowMissing);
11 if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
12 return callBind(intrinsic);
13 }
14 return intrinsic;
15};
Note: See TracBrowser for help on using the repository browser.