mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
added ext/ folder, to hold some core prototype functions
This commit is contained in:
6
lib/ext/array.js
Normal file
6
lib/ext/array.js
Normal file
@@ -0,0 +1,6 @@
|
||||
Array.prototype.find = function (fun) {
|
||||
for (var i = 0, r; i < this.length; i++) {
|
||||
if (r = fun.call(this, this[i])) { return r }
|
||||
}
|
||||
return null;
|
||||
};
|
||||
@@ -9,3 +9,5 @@ process.mixin(less.parser, require('less/node'));
|
||||
process.mixin(less.tree, require('less/tree'));
|
||||
process.mixin(exports, less);
|
||||
|
||||
require('ext/array');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user