Merge pull request #2446 from enaqx/master

Add 'use strict' to statisfy linter rules
This commit is contained in:
Paul O’Shannessy
2014-11-05 16:25:38 -08:00
3 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -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;
+2
View File
@@ -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.