MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / bind

Function bind

lib/web/CodeMirror/src/util/misc.js:1–4  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1export function bind(f) {
2 let args = Array.prototype.slice.call(arguments, 1)
3 return function(){return f.apply(null, args)}
4}
5
6export function copyObj(obj, target, overwrite) {
7 if (!target) target = {}

Callers 3

startWorkerFunction · 0.90
leftButtonDownFunction · 0.90
constructorMethod · 0.70

Calls 2

applyMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected