UNPKG

finpro

Version:
3 lines (2 loc) 332 B
function f(e,l){let o={waitUntilFirstUpdate:!1,...l};return(s,d)=>{let{update:r}=s,p=Array.isArray(e)?e:[e];s.update=function(t){p.forEach(c=>{let n=c;if(t.has(n)){let a=t.get(n),i=this[n];a!==i&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[d](a,i)}}),r.call(this,t)}}}export{f as a}; //# sourceMappingURL=chunk-233U3OM4.js.map