Initial commit
This commit is contained in:
commit
5eb60db655
7 changed files with 171 additions and 0 deletions
23
test.js
Normal file
23
test.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import {
|
||||
rangeGenerator,
|
||||
rangeObjectProperty,
|
||||
rangeClosure
|
||||
} from './range.js';
|
||||
|
||||
function testOne(func) {
|
||||
for (let i of func(10)) {
|
||||
console.log(i);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('rangeGenerator');
|
||||
testOne(rangeGenerator);
|
||||
console.log('\n');
|
||||
|
||||
console.log('rangeObjectProperty');
|
||||
testOne(rangeObjectProperty);
|
||||
console.log('\n');
|
||||
|
||||
console.log('rangeClosure');
|
||||
testOne(rangeClosure);
|
||||
console.log('\n');
|
||||
Loading…
Add table
Add a link
Reference in a new issue