set command for command.js

This commit is contained in:
minjaesong
2020-11-05 14:25:47 +09:00
parent 8643f354e6
commit e201f591b8
3 changed files with 73 additions and 10 deletions

View File

@@ -272,6 +272,17 @@ if ('function' !== typeof Array.prototype.reduceRight) {
return value;
};
}
if (!Object.entries) {
Object.entries = function( obj ){
var ownProps = Object.keys( obj ),
i = ownProps.length,
resArray = new Array(i); // preallocate the Array
while (i--)
resArray[i] = [ownProps[i], obj[ownProps[i]]];
return resArray;
};
}
///////////////////////////////////////////////////////////////////////////////////////////////////
// NOTE TO PROGRAMMERS: this JS_INIT script does not, and must not be invoked with strict mode //