"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isGroupColumn;
var _findIndex = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find-index"));
// 是否是叶子节点
function isGroupColumn(columns) {
  return (0, _findIndex.default)(columns).call(columns, function (col) {
    return col.children && col.children.length > 0;
  }) > -1;
}