Skip to content

Instantly share code, notes, and snippets.

const case1: string[] = ['alex', 'bob', 'john', 'alex2', 'bob2', 'john2']
const case2: string[] = ['alex', 'bob', 'john', 'alex2', 'bob2', 'john2', 'alex3']
const case3: string[] = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17']
const getGroupCount = (length: number) => {
if (length % 5 > 2) {
return 5
}
if (length % 4 > 2) {
var React = require("react");
module.exports = function (locals) {
var tags = [];
var locals_for_with = locals || {};
(function(checked, label, onChange) {
tags.push(React.createElement.apply(React, [ "div", {
className: "Checkbox flex middle"
} ].concat(function() {
var tags = [];
tags.push(React.createElement.apply(React, [ "button", {
var React = require("react");
module.exports = function (locals) {
var tags = [];
var locals_for_with = locals || {};
(function(checked, label, onChange) {
tags.push(React.createElement.apply(React, [ "div", {
className: "Checkbox flex middle"
} ].concat(function() {
var tags = [];
tags.push(React.createElement.apply(React, [ "button", {