UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

14 lines (13 loc) 430 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const toList = function (candidate) { let skipEmpty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (skipEmpty && (candidate === undefined || candidate === null)) { return []; } return Array.isArray(candidate) ? candidate : [candidate]; }; var _default = exports.default = toList;