mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2446 from enaqx/master
Add 'use strict' to statisfy linter rules
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign
|
||||
|
||||
"use strict";
|
||||
|
||||
function assign(target, sources) {
|
||||
if (target == null) {
|
||||
throw new TypeError('Object.assign target cannot be null or undefined');
|
||||
@@ -40,6 +42,6 @@ function assign(target, sources) {
|
||||
}
|
||||
|
||||
return to;
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = assign;
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
* @providesModule deprecated
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var assign = require('Object.assign');
|
||||
var warning = require('warning');
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
* @providesModule copyProperties
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Copy properties from one or more objects (up to 5) into the first object.
|
||||
* This is a shallow copy. It mutates the first object and also returns it.
|
||||
|
||||
Reference in New Issue
Block a user