feat: update api comments with jsdoc. (#52)

This commit is contained in:
Hawtim Zhang 2020-10-25 14:15:02 +08:00 committed by GitHub
parent e9b6a81bef
commit 4e482941ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 189 additions and 43 deletions

View file

@ -64,7 +64,7 @@ export function shuffleAList(list) {
export function throttle(fn, time) {
let isRun = false;
return function() {
return function () {
if (isRun) return;
isRun = true;
fn.apply(this, arguments);