Update std.js

This commit is contained in:
Namhyeon Go 2022-11-07 01:38:57 +09:00 committed by GitHub
parent 58bf6b5ee9
commit e91d9bd859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,20 +270,6 @@ function addslashes(s) {
;
};
function cartesian(arr) {
return arr.reduce(function(a, b) {
return a.map(function(x) {
return b.map(function(y) {
return x.concat([y]);
})
}).reduce(function(a, b) {
return a.concat(b);
}, []);
}, [
[]
]);
};
/////////////////////////////////////////////////////////////////////////////////
// Private APIs / Utility functions
/////////////////////////////////////////////////////////////////////////////////
@ -474,7 +460,7 @@ global.splitLn = splitLn;
global.addslashes = addslashes;
global.AsyncFunction = AsyncFunction;
exports.VERSIONINFO = "Standard Library (std.js) version 0.7.4";
exports.VERSIONINFO = "Standard Library (std.js) version 0.7.5";
exports.global = global;
exports.require = global.require;
@ -482,4 +468,3 @@ exports.Event = StdEvent;
exports.EventableObject = StdEventableObject;
exports.alert = alert;
exports.cartesian = cartesian;