Skip to content

Commit 7778086

Browse files
yushimatenjinfacebook-github-bot
yushimatenjin
authored andcommitted
Remove var in Libraries/vendor/core/merge.js (facebook#22108)
Summary: Replaces the keywords var with const in Libraries/merge.js If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible! - [x] Check npm run flow - [x] Check npm run flow-check-ios - [x] Check npm run flow-check-android [GENERAL] [ENHANCEMENT] [Libraries/core] - remove var Pull Request resolved: facebook#22108 Differential Revision: D12919282 Pulled By: TheSavior fbshipit-source-id: e3c8569c47c95ad3d1a061917c90185c2694c78f
1 parent 982e791 commit 7778086

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Libraries/vendor/core/merge.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
"use strict";
99

10-
var mergeInto = require('mergeInto');
10+
const mergeInto = require('mergeInto');
1111

1212
/**
1313
* Shallow merges two structures into a return value, without mutating either.
@@ -16,8 +16,8 @@ var mergeInto = require('mergeInto');
1616
* @param {?object} two Optional object with properties to merge from.
1717
* @return {object} The shallow extension of one by two.
1818
*/
19-
var merge = function(one, two) {
20-
var result = {};
19+
const merge = function(one, two) {
20+
const result = {};
2121
mergeInto(result, one);
2222
mergeInto(result, two);
2323
return result;

0 commit comments

Comments
 (0)