add more files

This commit is contained in:
Harvey Zack committed 2018-10-12 11:57:51 +08:00
1 parent 5a59096f9b
commit 19a2636ea9
12 files changed
+350 -169

No files matched your search

+4 -1
View File
@@ -1,8 +1,11 @@
import ArtPlayerError from './ArtPlayerError';
export * from './verification';
export function errorHandle(condition, msg) {
if (!condition) {
throw new ArtPlayerError(msg);
}
}
export function clamp(num, a, b) {
return Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b));
}