UNPKG

roko-date-picker

Version:
9 lines (8 loc) 336 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = require("react"); // Use generic type T to allow flexibility on the type of items in the of array const Each = ({ render, of }) => { return react_1.Children.toArray(of.map((item, index) => render(item, index))); }; exports.default = Each;