Sha256: 953277db719f9d1140f1a3f2164393c78b02468c080aa83bba574a6a57dbbe8e

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 Bytes

Contents

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;
};
require('less/tree').jsify = function (obj) {
    if (Array.isArray(obj.value) && (obj.value.length > 1)) {
        return '[' + obj.value.map(function (v) { return v.toCSS(false) }).join(', ') + ']';
    } else {
        return obj.toCSS(false);
    }
};

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
less-2.0.7 lib/less/js/lib/less/tree.js
less-2.0.6 lib/less/js/lib/less/tree.js
less-2.0.5 lib/less/js/lib/less/tree.js
less-2.0.4 lib/less/js/lib/less/tree.js
less-2.0.3 lib/less/js/lib/less/tree.js
less-2.0.2 lib/less/js/lib/less/tree.js
less-2.0.1 lib/less/js/lib/less/tree.js
less-2.0.0 lib/less/js/lib/less/tree.js