UNPKG

patronum

Version:

☄️ Effector utility library delivering modularity and convenience

19 lines 360 B
import { is } from 'effector'; export function readonly(source) { if (!is.targetable(source)) { return source; } if (is.store(source, { sid: "-kqkmsc" })) { return source.map(value => value, { skipVoid: false }); } if (is.event(source, { sid: "-kodgew" })) { return source.map(value => value); } return source; }