回答編集履歴
3
テキスト修正
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
#### 2. Lodash の _.map
|
43
|
+
#### 2. Lodash の _.mapKeysを使う
|
44
44
|
|
45
45
|
|
46
46
|
|
2
テキスト修正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
keysAfter = [ 'id', 'shop']
|
19
|
+
keysAfter = [ 'id', 'shop'];
|
20
20
|
|
21
21
|
|
22
22
|
|
@@ -52,11 +52,11 @@
|
|
52
52
|
|
53
53
|
```javascript
|
54
54
|
|
55
|
-
keysAfter = [ 'id', 'shop']
|
55
|
+
keysAfter = [ 'id', 'shop'];
|
56
56
|
|
57
57
|
|
58
58
|
|
59
|
-
srcData = srcData.map(e => _.mapKeys(e, (v, k) => keysAfter[k]) )
|
59
|
+
srcData = srcData.map(e => _.mapKeys(e, (v, k) => keysAfter[k]) );
|
60
60
|
|
61
61
|
```
|
62
62
|
|
1
テキスト修正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
keysAfter = [ 'id', 'shop
|
19
|
+
keysAfter = [ 'id', 'shop']
|
20
20
|
|
21
21
|
|
22
22
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
```javascript
|
54
54
|
|
55
|
-
keysAfter = [ 'id', 'shop
|
55
|
+
keysAfter = [ 'id', 'shop']
|
56
56
|
|
57
57
|
|
58
58
|
|