Fix block statement code style. (#3493)

This commit is contained in:
Logan Smyth
2016-05-02 18:15:37 -07:00
committed by Henry Zhu
parent bf5de6bcb7
commit 9843c87573
12 changed files with 16 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ import "babel-regenerator-runtime";
import "core-js/fn/regexp/escape";
let DEFINE_PROPERTY = "defineProperty";
function define(O, key, value){
function define(O, key, value) {
O[key] || Object[DEFINE_PROPERTY](O, key, {
writable: true,
configurable: true,
@@ -24,6 +24,6 @@ function define(O, key, value){
define(String.prototype, "padLeft", "".padStart);
define(String.prototype, "padRight", "".padEnd);
"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(key){
"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(key) {
[][key] && define(Array, key, Function.call.bind([][key]));
});