UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

6 lines 538 B
import{noChange as r}from"../lit-html.js";import{directive as t,Directive as e}from"../directive.js"; /** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const s={},i=t(class extends e{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(t,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every(((r,t)=>r===this.ot[t])))return r}else if(this.ot===e)return r;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{i as guard};