UNPKG

@atlaskit/select

Version:

Select allows users to make a single selection or multiple selections from a list of options.

12 lines (11 loc) 386 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isOptionsGrouped = void 0; // Helper function which identifies if options are grouped. var isOptionsGrouped = exports.isOptionsGrouped = function isOptionsGrouped(arr) { return arr === null || arr === void 0 ? void 0 : arr.every(function (obj) { return obj.hasOwnProperty('options'); }); };