UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

13 lines (12 loc) 350 B
"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;