* 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)
| 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 |