Add 'use strict' to statisfy linter rules

This commit is contained in:
Nick Raienko
2014-11-01 07:05:46 +02:00
parent cb50a8698b
commit bea9fbbf62
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.