Last active
          May 28, 2016 06:52 
        
      - 
      
- 
        Save mihneawalker/b62ad4806a3170c60827ba0fc10daf41 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
    
  
  
    
  | function destroyer(arr) { | |
| // var argss = [...arr]; | |
| var argss = Array.from(arguments); | |
| initial = argss[0]; | |
| values = argss.slice(1); | |
| console.log(initial, "===", values); | |
| return initial.filter( function(index){ | |
| return values.indexOf(index) == -1; | |
| }); | |
| } | |
| destroyer([1, 2, 3, 1, 2, 3], 2, 3); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment