mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
config redirect
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
function count(node) {
|
||||
var sum = 0,
|
||||
children = node.children,
|
||||
i = children && children.length;
|
||||
if (!i) sum = 1;
|
||||
else while (--i >= 0) sum += children[i].value;
|
||||
node.value = sum;
|
||||
}
|
||||
|
||||
export default function() {
|
||||
return this.eachAfter(count);
|
||||
}
|
||||
Reference in New Issue
Block a user