Files
copilot-toolbox-sdfdsfds/node_modules/antd/lib/_util/toList.js
2026-01-16 01:51:36 +00:00

13 lines
350 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const toList = (candidate, skipEmpty = false) => {
if (skipEmpty && (candidate === undefined || candidate === null)) {
return [];
}
return Array.isArray(candidate) ? candidate : [candidate];
};
var _default = exports.default = toList;