MCPcopy Create free account
hub / github.com/TruthHun/BookStack / shallowClone

Function shallowClone

static/editor.md/lib/codemirror/addon/hint/sql-hint.js:39–44  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

37 }
38
39 function shallowClone(object) {
40 var result = {};
41 for (var key in object) if (object.hasOwnProperty(key))
42 result[key] = object[key];
43 return result;
44 }
45
46 function match(string, word) {
47 var len = string.length;

Callers 2

insertBackticksFunction · 0.85
nameCompletionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected