Created
August 12, 2021 06:49
-
-
Save tofusoup429/7284b3bdfb04225f9f009dd310e3a0a2 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 months = ["Jan", "Mar", "Mar", "April"]; | |
let febs = ["Feb", "Feb2", "Feb4"]; | |
let returnedValue = months.splice(1, 3, ...febs); | |
console.log(returnedValue) | |
//output: ["Mar","Mar","April"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment