Update removeFromArray/removeFromArray.js
Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									b52b2ace26
								
							
						
					
					
						commit
						adf2bf93bc
					
				| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
// we have 2 solutions here, an easier one and a more advanced one.
 | 
					// we have 2 solutions here, an easier one and a more advanced one.
 | 
				
			||||||
// The easiest way to get an array of all of the arguments that are passed to a function
 | 
					// The easiest way to get an array of the rest of the arguments that are passed to a function
 | 
				
			||||||
// is using the rest operator. If this is unfamiliar to you look it up!
 | 
					// is using the rest operator. If this is unfamiliar to you look it up!
 | 
				
			||||||
const removeFromArray = function (array, ...args) {
 | 
					const removeFromArray = function (array, ...args) {
 | 
				
			||||||
  // create a new empty array
 | 
					  // create a new empty array
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue