nl_tokens: Format various kinds of data to RPC spec or into digestable JS objects
pl_tokens: function format ( formatter , value , encode , lengthRequirement ) { var output = value ; // eslint-disable-line // if formatter is quantity or quantity or tag if ( formatter === 'Q' ) { output = formatQuantity ( value , encode ) ; } else if ( formatter === 'QP' ) { output = formatQuantity ( value , encode , true ) ; } else if ( formatter === 'Q|T' ) { output = formatQuantityOrTag ( value , encode ) ; } else if ( formatter === 'D' ) { output = formatData ( value ) ; // dont format data flagged objects like compiler output } else if ( formatter === 'D20' ) { output = formatData ( value , 20 ) ; // dont format data flagged objects like compiler output } else if ( formatter === 'D32' ) { output = formatData ( value , 32 ) ; // dont format data flagged objects like compiler output } else { // if value is an object or array if ( typeof value === 'object' && value !== null && <mask> . isArray ( value ) === false ) { output = formatObject ( formatter , value , encode ) ; } else if ( Array . isArray ( value ) ) { output = formatArray ( formatter , value , encode , lengthRequirement ) ; } } return output ; }