Created
January 2, 2019 18:02
-
-
Save emeaguiar/90d611d2beb2efcdd51475d28d5d392f to your computer and use it in GitHub Desktop.
This file contains 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
const array = [ 'foo', 'bar', 'baz' ]; | |
// Empezando en la posición 1, elimina el siguiente elemento | |
const removedElement = array.splice( 1, 1 ); | |
// [ 'foo', 'baz' ] | |
console.log( array ); | |
// [ 'bar' ] | |
console.log( removedElement ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment