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

Function _typeResult

external/.datatables.js:2111–2113  ·  view source on GitHub ↗

* Allow the result from a type detection function to be `true` while * translating that into a string. Old type detection functions will * return the type name if it passes. An obect store would be better, * but not backwards compatible. * * @param {*} typeDetect Object or function for typ

(typeDetect, res)

Source from the content-addressed store, hash-verified

2109 * @returns Type name or false
2110 */
2111 function _typeResult(typeDetect, res) {
2112 return res === true ? typeDetect._name : res
2113 }
2114
2115 /**
2116 * Calculate the 'type' of a column

Callers 1

_fnColumnTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected