smartystreets-javascript-sdk
Version:
Quick and easy Smarty address validation.
2 lines (1 loc) • 510 B
JavaScript
var o,r,t=require("./Errors.cjs");exports.__require=function(){if(r)return o;r=1;const s=t.__require().BatchFullError;return o=class{constructor(){this.lookups=[]}add(o){if(!this.lookupsHasRoomForLookup())throw new s;this.lookups.push(o)}lookupsHasRoomForLookup(){return this.lookups.length<100}length(){return this.lookups.length}getByIndex(o){return this.lookups[o]}getByInputId(o){return this.lookups.filter((r=>r.inputId===o))[0]}clear(){this.lookups=[]}isEmpty(){return 0===this.length()}}};
;