nl_tokens: Determine if all tickValues are modulo some interval value
pl_tokens: function all_modulo ( tickValues , interval ) { // we can't modulo-check decimals so we need to multiply by 10^Ndecimals var maxDecimals = reduce ( tickValues , function ( prevMax , <mask> ) { if ( ( tick % 1 ) !== 0 ) { return Math . max ( prevMax , tick . toString ( ) . split ( "." ) [ 1 ] . length ) ; } else { return prevMax ; } } , 0 ) ; var decimalOffset = Math . pow ( 10 , maxDecimals ) ; interval = interval * decimalOffset ; return reduce ( tickValues , function ( prev , curr ) { return prev && ( ( curr * decimalOffset ) % interval === 0 ) ; } , true ) ; }