Created
September 29, 2011 00:23
-
-
Save dakatsuka/1249674 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
item1 = {} | |
item2 = {} | |
item3 = {} | |
array = [item1, item2, item3] | |
array.splice array.indexOf(item2), 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment