MCPcopy Create free account
hub / github.com/breck7/scroll / _stringOrFunction

Function _stringOrFunction

external/.datatables.js:15028–15035  ·  view source on GitHub ↗
(option, config, dt)

Source from the content-addressed store, hash-verified

15026 * @return {null|string} Resolved value
15027 */
15028 var _stringOrFunction = function (option, config, dt) {
15029 if (option === null || option === undefined) {
15030 return null
15031 } else if (typeof option === "function") {
15032 return option(config, dt)
15033 }
15034 return option
15035 }
15036
15037 /**
15038 * Get the title for an exported file.

Callers 3

_filenameFunction · 0.85
_titleFunction · 0.85
_messageFunction · 0.85

Calls 1

optionFunction · 0.85

Tested by

no test coverage detected