flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
14
VISUALIZACION/node_modules/falafel/example/array.js
generated
vendored
Executable file
14
VISUALIZACION/node_modules/falafel/example/array.js
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
var falafel = require('../');
|
||||
|
||||
var src = '(' + function () {
|
||||
var xs = [ 1, 2, [ 3, 4 ] ];
|
||||
var ys = [ 5, 6 ];
|
||||
console.dir([ xs, ys ]);
|
||||
} + ')()';
|
||||
|
||||
var output = falafel(src, function (node) {
|
||||
if (node.type === 'ArrayExpression') {
|
||||
node.update('fn(' + node.source() + ')');
|
||||
}
|
||||
});
|
||||
console.log(output);
|
||||
Loading…
Add table
Add a link
Reference in a new issue