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

Function createObj

lib/web/CodeMirror/src/util/misc.js:112–122  ·  view source on GitHub ↗
(base, props)

Source from the content-addressed store, hash-verified

110function nothing() {}
111
112export function createObj(base, props) {
113 let inst
114 if (Object.create) {
115 inst = Object.create(base)
116 } else {
117 nothing.prototype = base
118 inst = new nothing()
119 }
120 if (props) copyObj(props, inst)
121 return inst
122}
123
124let nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/
125export function isWordCharBasic(ch) {

Callers 2

resolveModeFunction · 0.90
Doc.jsFile · 0.90

Calls 2

copyObjFunction · 0.70
createMethod · 0.45

Tested by

no test coverage detected