This commit is contained in:
Harvey Zack committed 2018-10-24 13:43:11 +08:00
1 parent 9fd3e580bb
commit 4ce05442c7
36 files changed
+731 -683

No files matched your search

+6
View File
@@ -91,3 +91,9 @@ export function setStorage(key, value) {
});
localStorage.setItem('artplayer_settings', JSON.stringify(storage));
}
export function getType(val) {
const { toString } = Object.prototype;
const type = toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, '');
return type;
}