function chunkifyString ( input , chunkSize ) { const result = [ ] ; for ( var i = 0 ; i < input . length ; i += chunkSize ) { const size = Math . min ( chunkSize , input . length - i ) ; result . push ( input . substr ( i , size ) ) ; } return result ; } export { chunkifyString } ;