MCPcopy Create free account
hub / github.com/nodejs/node / maybeBind

Function maybeBind

test/fixtures/snapshot/typescript.js:1631–1633  ·  view source on GitHub ↗
(obj, fn)

Source from the content-addressed store, hash-verified

1629 }
1630 ts.copyProperties = copyProperties;
1631 function maybeBind(obj, fn) {
1632 return fn ? fn.bind(obj) : undefined;
1633 }
1634 ts.maybeBind = maybeBind;
1635 function createMultiMap() {
1636 var map = new ts.Map();

Callers 2

onLeftFunction · 0.85
onRightFunction · 0.85

Calls 2

bindFunction · 0.70
bindMethod · 0.45

Tested by

no test coverage detected