docs: function flatten(srcArr, isDeep) {
        var tmpArr = [];
        forEach(srcArr, function (val) {
          if (isArr(val)) {
            tmpArr.push.apply(tmpArr, isDeep ? flatten(val, true) : val);
          } else {
            tmpArr.push(val);
          }
        });
        return tmpArr;
      }