質問編集履歴
2
っっっっっj
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
-
hash = [{id:1,name:'加藤',old: 20,class: 1},{id:2,name: '
|
13
|
+
hash = [{id:1,name:'加藤',old: 20,class: 1},{id:2,name: 'うるさい',old: '23',class: 2},{id:3,name'加藤',old:30,class: 2}
|
14
14
|
|
15
15
|
{id:4,name:'加藤',old: 20}]
|
16
16
|
|
1
jjjjjjjjj
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,20 +6,18 @@
|
|
6
6
|
|
7
7
|
例
|
8
8
|
|
9
|
-
|
9
|
+
以下の場合、nameとoldが両方一致するデータ同士を取得したいです
|
10
10
|
|
11
|
+
```
|
12
|
+
|
13
|
+
hash = [{id:1,name:'加藤',old: 20,class: 1},{id:2,name: '佐倉',old: '23',class: 2},{id:3,name'加藤',old:30,class: 2}
|
14
|
+
|
11
|
-
|
15
|
+
{id:4,name:'加藤',old: 20}]
|
12
16
|
|
13
17
|
|
14
18
|
|
15
|
-
|
19
|
+
取得後
|
16
20
|
|
17
|
-
|
21
|
+
[{id:1,name:'加藤',old: 20,class:1},{id:4,name:'加藤',old: 20,class:2}]
|
18
22
|
|
19
|
-
|1|串カツ|ラーメン|
|
20
|
-
|
21
|
-
|
23
|
+
```
|
22
|
-
|
23
|
-
|3|たこ焼き|ラーメン|
|
24
|
-
|
25
|
-
|4|ラーメン|串カツ|
|