MCPcopy
hub / github.com/less/less.js / jsify

Method jsify

packages/less/lib/less/tree/js-eval-node.js:65–71  ·  view source on GitHub ↗

* @param {Node} obj * @returns {string}

(obj)

Source from the content-addressed store, hash-verified

63 * @returns {string}
64 */
65 jsify(obj) {
66 if (Array.isArray(obj.value) && (obj.value.length > 1)) {
67 return `[${obj.value.map(function (v) { return v.toCSS(/** @type {EvalContext} */ (undefined)); }).join(', ')}]`;
68 } else {
69 return obj.toCSS(/** @type {EvalContext} */ (undefined));
70 }
71 }
72}
73
74export default JsEvalNode;

Callers 1

evaluateJavaScriptMethod · 0.80

Calls 3

mapMethod · 0.80
joinMethod · 0.65
toCSSMethod · 0.45

Tested by

no test coverage detected