Skip to content

Commit c50c320

Browse files
committed
didn't use this in the end
1 parent 04a20a3 commit c50c320

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

test/util.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,3 @@ function assertSame(name, fn) {
1616
});
1717
}
1818

19-
//iterate over a cartesian join
20-
exports.join = join
21-
22-
function join (args, each) {
23-
args = args.slice()
24-
var first = args.shift()
25-
if(args.length) {
26-
first.forEach(function (v) {
27-
join(args, function (vargs) {
28-
each([v].concat(vargs))
29-
})
30-
})
31-
}
32-
else
33-
first.forEach(function (v) {
34-
each([v])
35-
})
36-
}
37-
38-
39-
if(!module.parent) {
40-
join([[1,2,3], ['a', 'b', 'c'], [true, false, null]], console.log)
41-
}

0 commit comments

Comments
 (0)