// @flow import {curry} from "flow-static-land/lib/Fun"; /** * Returns a new Array with the given size (count) filled with the specified * element. */ const repeat = (count: number, element: Element): Array => [...Array(count)].map(() => element); export default curry(repeat);