carto/lib/less/tree.js

7 lines
174 B
JavaScript
Raw Normal View History

require('less/tree').find = function (obj, fun) {
for (var i = 0, r; i < obj.length; i++) {
if (r = fun.call(obj, obj[i])) { return r }
}
return null;
};