MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / copyArgs

Function copyArgs

static/js/codemirror/keymap/vim.js:1415–1423  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1413 }
1414 }
1415 function copyArgs(args) {
1416 var ret = {};
1417 for (var prop in args) {
1418 if (args.hasOwnProperty(prop)) {
1419 ret[prop] = args[prop];
1420 }
1421 }
1422 return ret;
1423 }
1424 function offsetCursor(cur, offsetLine, offsetCh) {
1425 return { line: cur.line + offsetLine, ch: cur.ch + offsetCh };
1426 }

Callers 1

VimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected