app/assets/javascripts/knowledge_base_public_polyfills/promise.js
Function all
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Promise.all = function(arr) {
return new Promise(function(resolve, reject) {
if (!arr || typeof arr.length === 'undefined')
throw new TypeError('Promise.all accepts an array');
var args = Array.prototype.slice.call(arr);