UNPKG

@prelude/array

Version:

Array module.

7 lines 318 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const of = (n, valueOrFunction) => typeof valueOrFunction === 'function' ? Array.from(Array(n), (_, index) => valueOrFunction(index)) : Array.from(Array(n), () => valueOrFunction); exports.default = of; //# sourceMappingURL=of.js.map