Created
April 15, 2017 00:40
-
-
Save chuck0523/e2c3e4ae5c6ec8eed702be74237dcfa7 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 ary = [1, 2, 3, 4, 5] | |
// array[2]から3個の要素を6で埋める | |
ary.splice(2, 3, 6, 6, 6) | |
console.log(ary) // [1, 2, 6, 6, 6] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment