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

Function deflt

static/katex/katex.js:291–293  ·  view source on GitHub ↗
(setting, defaultIfUndefined)

Source from the content-addressed store, hash-verified

289
290
291var deflt = function deflt(setting, defaultIfUndefined) {
292 return setting === undefined ? defaultIfUndefined : setting;
293}; // hyphenate and escape adapted from Facebook's React under Apache 2 license
294
295
296var uppercase = /([A-Z])/g;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected