UNPKG

@qvant/qui-max

Version:

A Vue 3 Design system for Web.

20 lines (19 loc) 490 B
import assocIndexOf from "./_assocIndexOf.js"; var arrayProto = Array.prototype; var splice = arrayProto.splice; function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } export { listCacheDelete as default }; //# sourceMappingURL=_listCacheDelete.js.map