Created
          July 30, 2018 09:57 
        
      - 
      
 - 
        
Save mgmgpyaesonewin/21656a0d7511df13b5442e90ee351564 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | let arr = ['label one', 1, 'label two', 2, 'label 3', 3]; | |
| arr.chunk(2) | |
| .map(([label, value]) => ({ label, value })); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment