Initial commit
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
module.exports = function (xs, fn) {
|
||||
var res = [];
|
||||
for (var i = 0; i < xs.length; i++) {
|
||||
var x = fn(xs[i], i);
|
||||
if (Array.isArray(x) res.push.apply(res, x);
|
||||
else res.push(x);
|
||||
}
|
||||
return res;
|
||||
};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import x from 'y';
|
||||
export default z;
|
||||
+1
@@ -0,0 +1 @@
|
||||
function f () {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
process.exit(1);
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
})();
|
||||
process.exit(1);
|
||||
(function () {
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
console.log('foo');
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
var a = { ...b }
|
||||
;({ d, ...e } = a)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
function *foo () {
|
||||
yield 5
|
||||
}
|
||||
|
||||
(function *() {
|
||||
console.log(foo().next().value)
|
||||
})().next();
|
||||
|
||||
(function *() { })();
|
||||
|
||||
(function * () {
|
||||
yield yield 3
|
||||
})();
|
||||
Reference in New Issue
Block a user