Travis build: 1889
This commit is contained in:
@ -863,7 +863,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "0a4684d6fc79bdbbac31df3af6c493ba7c881936ada5bc52824b4f26ca177459"
|
"hash": "77a01af8797ecbe71b9c9412d21c144c03a46a49dd3d0e7d869c3df38b39b2b4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -926,7 +926,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "a4e1e33c0688dbf1ca231d9d8ea315ffed93b7f83f5d8cbf0714f10fdfeda8cf"
|
"hash": "6fa14364405f7b99aa49c2157bdc08c02b4ce2f288db29a4348a6983460933c7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1065,7 +1065,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "484bd222e636e8a8409c30ddb1fe6e3fe72ab7a43f2edf089b2758d5e9bee528"
|
"hash": "bdc202436bee09f06a353d31841c6cfff33e8efead34c6c56ae1a1413284976d"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1301,7 +1301,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "55b1ce0a892110d792a9487e40331774015525479faa2b8961f6c2ea6291c27b"
|
"hash": "6e9710c9117f500e74e65c0ee36b39fb80bd55537fa5ff9c4b1136b2667096f2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1720,7 +1720,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "9e39c6a3a8ec5b51c5e16f69107fc9e90b2697b2cf2689850872071bb968723e"
|
"hash": "f9e6687cc28cd80e68f7a6776f893c7478aaa942710e0eb7144f105eba574a54"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -3001,7 +3001,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "3db3faac666ee61ab86c70766d2ab5d1293ffd818da87edb971bfff7a366364a"
|
"hash": "682a6b7cfeb58efe9ed7b6daf467c45397df0acecfc21cab59e5ffedd03503ba"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -3592,7 +3592,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "e8f820ce6da97eabde082ffb829c9fb700e85efc79bdebe883c67237269e3f52"
|
"hash": "406723128cb71796de5503b04c137c89c9e9bd245164483c74b0229df50d2021"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -3938,7 +3938,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "a2b9ac4f1209c3791caa6f40f0d041acd75514e9ee8909f2e3833635f357c0bd"
|
"hash": "345bea897a67c1b851ef4110b3db692140064c418703a5d102e057b002808de3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -4332,7 +4332,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "be8ec39c092128ba679a3f0421b6abc34ad891dec85354caa419dc4104687a05"
|
"hash": "0b549930f468d934adcb898f371ef590beff15bf2816d7e5c65264a567d68486"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -4648,7 +4648,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "6dd4c6a51d2c80fa4768c95ae01c16a8359c4140bcad28c7fde0cecd72d7d3e2"
|
"hash": "f77974f024d9c020fe8efe4ecc77686faf8ad690122f4c071fe5205df921e052"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1409,10 +1409,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "0a4684d6fc79bdbbac31df3af6c493ba7c881936ada5bc52824b4f26ca177459",
|
"hash": "77a01af8797ecbe71b9c9412d21c144c03a46a49dd3d0e7d869c3df38b39b2b4",
|
||||||
"firstSeen": "1516733326",
|
"firstSeen": "1516733326",
|
||||||
"lastUpdated": "1587039270",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 85,
|
"updateCount": 86,
|
||||||
"authorCount": 9
|
"authorCount": 9
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1512,10 +1512,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "a4e1e33c0688dbf1ca231d9d8ea315ffed93b7f83f5d8cbf0714f10fdfeda8cf",
|
"hash": "6fa14364405f7b99aa49c2157bdc08c02b4ce2f288db29a4348a6983460933c7",
|
||||||
"firstSeen": "1544374334",
|
"firstSeen": "1544374334",
|
||||||
"lastUpdated": "1587039270",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 97,
|
"updateCount": 98,
|
||||||
"authorCount": 4
|
"authorCount": 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1741,10 +1741,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "484bd222e636e8a8409c30ddb1fe6e3fe72ab7a43f2edf089b2758d5e9bee528",
|
"hash": "bdc202436bee09f06a353d31841c6cfff33e8efead34c6c56ae1a1413284976d",
|
||||||
"firstSeen": "1531080384",
|
"firstSeen": "1531080384",
|
||||||
"lastUpdated": "1587039270",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 122,
|
"updateCount": 123,
|
||||||
"authorCount": 5
|
"authorCount": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2127,10 +2127,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "55b1ce0a892110d792a9487e40331774015525479faa2b8961f6c2ea6291c27b",
|
"hash": "6e9710c9117f500e74e65c0ee36b39fb80bd55537fa5ff9c4b1136b2667096f2",
|
||||||
"firstSeen": "1512650493",
|
"firstSeen": "1512650493",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 128,
|
"updateCount": 129,
|
||||||
"authorCount": 6
|
"authorCount": 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2816,10 +2816,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "9e39c6a3a8ec5b51c5e16f69107fc9e90b2697b2cf2689850872071bb968723e",
|
"hash": "f9e6687cc28cd80e68f7a6776f893c7478aaa942710e0eb7144f105eba574a54",
|
||||||
"firstSeen": "1515856488",
|
"firstSeen": "1515856488",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 87,
|
"updateCount": 88,
|
||||||
"authorCount": 4
|
"authorCount": 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4907,10 +4907,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "3db3faac666ee61ab86c70766d2ab5d1293ffd818da87edb971bfff7a366364a",
|
"hash": "682a6b7cfeb58efe9ed7b6daf467c45397df0acecfc21cab59e5ffedd03503ba",
|
||||||
"firstSeen": "1514801920",
|
"firstSeen": "1514801920",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 94,
|
"updateCount": 95,
|
||||||
"authorCount": 7
|
"authorCount": 7
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -5868,10 +5868,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "e8f820ce6da97eabde082ffb829c9fb700e85efc79bdebe883c67237269e3f52",
|
"hash": "406723128cb71796de5503b04c137c89c9e9bd245164483c74b0229df50d2021",
|
||||||
"firstSeen": "1570824965",
|
"firstSeen": "1570824965",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 61,
|
"updateCount": 62,
|
||||||
"authorCount": 4
|
"authorCount": 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -6425,7 +6425,7 @@
|
|||||||
"codeBlocks": {
|
"codeBlocks": {
|
||||||
"es6": "const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg));",
|
"es6": "const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg));",
|
||||||
"es5": "var pipeAsyncFunctions = function pipeAsyncFunctions() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (arg) {\n return fns.reduce(function (p, f) {\n return p.then(f);\n }, Promise.resolve(arg));\n };\n};",
|
"es5": "var pipeAsyncFunctions = function pipeAsyncFunctions() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (arg) {\n return fns.reduce(function (p, f) {\n return p.then(f);\n }, Promise.resolve(arg));\n };\n};",
|
||||||
"example": "const sum = pipeAsyncFunctions(\n x => x + 1,\n x => new Promise(resolve => setTimeout(() => resolve(x + 2), 1000)),\n x => x + 3,\n async x => (await x) + 4\n);\n(async () => {\n console.log(await sum(5)); // 15 (after one second)\n})();"
|
"example": "const sum = pipeAsyncFunctions(\n x => x + 1,\n x => new Promise(resolve => setTimeout(() => resolve(x + 2), 1000)),\n x => x + 3,\n async x => (await x) + 4\n);\n(async() => {\n console.log(await sum(5)); // 15 (after one second)\n})();"
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"function",
|
"function",
|
||||||
@ -6434,10 +6434,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "a2b9ac4f1209c3791caa6f40f0d041acd75514e9ee8909f2e3833635f357c0bd",
|
"hash": "345bea897a67c1b851ef4110b3db692140064c418703a5d102e057b002808de3",
|
||||||
"firstSeen": "1517069864",
|
"firstSeen": "1517069864",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 119,
|
"updateCount": 120,
|
||||||
"authorCount": 5
|
"authorCount": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -7078,10 +7078,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "be8ec39c092128ba679a3f0421b6abc34ad891dec85354caa419dc4104687a05",
|
"hash": "0b549930f468d934adcb898f371ef590beff15bf2816d7e5c65264a567d68486",
|
||||||
"firstSeen": "1513521691",
|
"firstSeen": "1513521691",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 116,
|
"updateCount": 117,
|
||||||
"authorCount": 6
|
"authorCount": 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -7594,10 +7594,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"hash": "6dd4c6a51d2c80fa4768c95ae01c16a8359c4140bcad28c7fde0cecd72d7d3e2",
|
"hash": "f77974f024d9c020fe8efe4ecc77686faf8ad690122f4c071fe5205df921e052",
|
||||||
"firstSeen": "1514645161",
|
"firstSeen": "1514645161",
|
||||||
"lastUpdated": "1587039498",
|
"lastUpdated": "1587043509",
|
||||||
"updateCount": 58,
|
"updateCount": 59,
|
||||||
"authorCount": 5
|
"authorCount": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -11,7 +11,6 @@ Otherwise, return the product of `n` and the factorial of `n - 1`.
|
|||||||
Throws an exception if `n` is a negative number.
|
Throws an exception if `n` is a negative number.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
const factorial = n =>
|
const factorial = n =>
|
||||||
n < 0
|
n < 0
|
||||||
? (() => {
|
? (() => {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ const sum = pipeAsyncFunctions(
|
|||||||
x => x + 3,
|
x => x + 3,
|
||||||
async x => (await x) + 4
|
async x => (await x) + 4
|
||||||
);
|
);
|
||||||
(async () => {
|
(async() => {
|
||||||
console.log(await sum(5)); // 15 (after one second)
|
console.log(await sum(5)); // 15 (after one second)
|
||||||
})();
|
})();
|
||||||
```
|
```
|
||||||
|
|||||||
@ -9,7 +9,6 @@ Use `Array.prototype.filter()` to find array elements that return truthy values
|
|||||||
The `func` is invoked with three arguments (`value, index, array`).
|
The `func` is invoked with three arguments (`value, index, array`).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
const remove = (arr, func) =>
|
const remove = (arr, func) =>
|
||||||
Array.isArray(arr)
|
Array.isArray(arr)
|
||||||
? arr.filter(func).reduce((acc, val) => {
|
? arr.filter(func).reduce((acc, val) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user