UNPKG

cream-and-sugar

Version:

A deliciously functional syntax for JavaScript with native support for JSX

9 lines (7 loc) 219 B
import { compile, nodes } from '../utils'; /* * Turn the cons operation into a function call. */ compile(nodes.ConsNode, function () { return `[${this.toAdd.compile(true)}].concat(${this.base.compile(true)})`; });