mirror of
https://github.com/less/less.js.git
synced 2026-01-23 22:27:57 -05:00
15 lines
370 B
JavaScript
15 lines
370 B
JavaScript
if (typeof(String.prototype.trim) !== "function") {
|
|
String.prototype.trim = function (str) {
|
|
return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
|
};
|
|
}
|
|
if (typeof(Array.isArray) !== "function") {
|
|
Array.isArray = function (a) {
|
|
if (a instanceof Array) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
}
|