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

Function deflt

static/katex/katex.mjs:167–169  ·  view source on GitHub ↗
(setting, defaultIfUndefined)

Source from the content-addressed store, hash-verified

165
166
167const deflt = function deflt(setting, defaultIfUndefined) {
168 return setting === undefined ? defaultIfUndefined : setting;
169}; // hyphenate and escape adapted from Facebook's React under Apache 2 license
170
171
172const uppercase = /([A-Z])/g;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected