回答編集履歴

3

テキスト修正

2019/09/23 01:33

投稿

jun68ykt
jun68ykt

score0

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
 

2

テキスト修正

2019/09/23 00:53

投稿

jun68ykt
jun68ykt

score0

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
 

1

テキスト修正

2019/09/23 00:47

投稿

jun68ykt
jun68ykt

score0

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
 
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- #### 2. Lodash の _.mapKeysを使う
43
+ #### 2. Lodash の _.map
44
44
 
45
45
 
46
46
 
@@ -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