Travis build: 1235 [cron]

This commit is contained in:
30secondsofcode
2019-06-13 15:58:26 +00:00
parent e970ed2d2c
commit 6f6d736494
7 changed files with 78 additions and 90 deletions

View File

@ -386,7 +386,7 @@
"archived": false
},
"meta": {
"hash": "2051a5037b3830e219c84dae16f72f42a8a8aee5e8f96bd98f506ea7c4f3bb42"
"hash": "7545fd041e4ca55d8f482825adc683fe8b9a967bbe0e860101b3df5e8ffcf9f6"
}
},
{
@ -2858,7 +2858,7 @@
"archived": false
},
"meta": {
"hash": "8d1b95da3bac65bf8a1801edfd1efce94ea17902669a7612c5a0138fad9d0b12"
"hash": "40c758f7279677e4a985430fdf1e8fc6809ed030989f22d1f395ce470a5554b3"
}
},
{
@ -2963,7 +2963,7 @@
"archived": false
},
"meta": {
"hash": "436e070c2961cd8cbeffbc05fae7b3fa978eefe1e048de248bc17b86a2b06705"
"hash": "490f37d865ca343a3d8f3e761e707c4b24f909a99aac355fb7e370fb31afea99"
}
},
{

View File

@ -568,7 +568,7 @@
},
"meta": {
"archived": false,
"hash": "2051a5037b3830e219c84dae16f72f42a8a8aee5e8f96bd98f506ea7c4f3bb42"
"hash": "7545fd041e4ca55d8f482825adc683fe8b9a967bbe0e860101b3df5e8ffcf9f6"
}
},
{
@ -4195,10 +4195,10 @@
"type": "snippet",
"attributes": {
"fileName": "maxDate.md",
"text": "Returns the maximum of the given dates.\n\nUse `Math.max.apply()` to find the maximum date value, `new Date()` to convert it to a `Date` object.",
"text": "Returns the maximum of the given dates.\n\nUse the ES6 spread syntax with `Math.max` to find the maximum date value, `new Date()` to convert it to a `Date` object.",
"codeBlocks": {
"es6": "const maxDate = (...dates) => new Date(Math.max.apply(null, ...dates));",
"es5": "var maxDate = function maxDate() {\n var _Math$max;\n\n for (var _len = arguments.length, dates = new Array(_len), _key = 0; _key < _len; _key++) {\n dates[_key] = arguments[_key];\n }\n\n return new Date((_Math$max = Math.max).apply.apply(_Math$max, [null].concat(dates)));\n};",
"es6": "const maxDate = dates => new Date(Math.max(...dates));",
"es5": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar maxDate = function maxDate(dates) {\n return new Date(Math.max.apply(Math, _toConsumableArray(dates)));\n};",
"example": "const array = [\n new Date(2017, 4, 13),\n new Date(2018, 2, 12),\n new Date(2016, 0, 10),\n new Date(2016, 0, 9)\n];\nmaxDate(array); // 2018-03-11T22:00:00.000Z"
},
"tags": [
@ -4209,7 +4209,7 @@
},
"meta": {
"archived": false,
"hash": "8d1b95da3bac65bf8a1801edfd1efce94ea17902669a7612c5a0138fad9d0b12"
"hash": "40c758f7279677e4a985430fdf1e8fc6809ed030989f22d1f395ce470a5554b3"
}
},
{
@ -4349,10 +4349,10 @@
"type": "snippet",
"attributes": {
"fileName": "minDate.md",
"text": "Returns the minimum of the given dates.\n\nUse `Math.min.apply()` to find the minimum date value, `new Date()` to convert it to a `Date` object.",
"text": "Returns the minimum of the given dates.\n\nUse the ES6 spread syntax to find the minimum date value, `new Date()` to convert it to a `Date` object.",
"codeBlocks": {
"es6": "const minDate = (...dates) => new Date(Math.min.apply(null, ...dates));",
"es5": "var minDate = function minDate() {\n var _Math$min;\n\n for (var _len = arguments.length, dates = new Array(_len), _key = 0; _key < _len; _key++) {\n dates[_key] = arguments[_key];\n }\n\n return new Date((_Math$min = Math.min).apply.apply(_Math$min, [null].concat(dates)));\n};",
"es6": "const minDate = dates => new Date(Math.min(...dates));",
"es5": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar minDate = function minDate(dates) {\n return new Date(Math.min.apply(Math, _toConsumableArray(dates)));\n};",
"example": "const array = [\n new Date(2017, 4, 13),\n new Date(2018, 2, 12),\n new Date(2016, 0, 10),\n new Date(2016, 0, 9)\n];\nminDate(array); // 2016-01-08T22:00:00.000Z"
},
"tags": [
@ -4363,7 +4363,7 @@
},
"meta": {
"archived": false,
"hash": "436e070c2961cd8cbeffbc05fae7b3fa978eefe1e048de248bc17b86a2b06705"
"hash": "490f37d865ca343a3d8f3e761e707c4b24f909a99aac355fb7e370fb31afea99"
}
},
{