Skip to content

Instantly share code, notes, and snippets.

View MuhammadKhizar7's full-sized avatar

Muhammad Khizar MuhammadKhizar7

  • Pakistan
View GitHub Profile
@MuhammadKhizar7
MuhammadKhizar7 / db.js
Created November 1, 2021 11:00 — forked from smolinari/db.js
The services/db.js file for the Quasar todo browser extension demo
export default {
/**
* This will ask for ALL items from chrome storage and return only the ones we're interested in.
* @param type
*/
getAll (type) {
return this.get(null).then(allItems => {
return allItems.filter(f => f && f.type && f.type === type)
})