mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update std.js
This commit is contained in:
parent
87d494d148
commit
7fe5182e54
|
@ -219,6 +219,10 @@ function CHR(ord) {
|
||||||
return String.fromCharCode(ord);
|
return String.fromCharCode(ord);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function splitLn(s) {
|
||||||
|
return s.split(/\r?\n/);
|
||||||
|
};
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
// Private APIs / Utility functions
|
// Private APIs / Utility functions
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -292,6 +296,7 @@ global.repeat = repeat;
|
||||||
global.rotate = rotate;
|
global.rotate = rotate;
|
||||||
global.range = range;
|
global.range = range;
|
||||||
global.CHR = CHR;
|
global.CHR = CHR;
|
||||||
|
global.splitLn = splitLn;
|
||||||
|
|
||||||
exports.VERSIONINFO = "Standard Lib (std.js) version 0.4";
|
exports.VERSIONINFO = "Standard Lib (std.js) version 0.4";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user