fix(factory): func without export

main
pawka 2 months ago
parent 6633f22e53
commit e4f6b57b44

@ -9,7 +9,7 @@
* @param {new T } cls
* @returns {T[] | []}
*/
function factory(values, cls) {
export function factory(values, cls) {
if (values.length) {
return values.map((val) => new cls(val));
}

Loading…
Cancel
Save