Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Remove unused hasKeys util.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kelly committed Aug 1, 2018
1 parent 1700986 commit 71d0b54
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ export async function retry(callback, maxRetries = 5, delayFactor = 2, initialDe
}
throw lastError;
}

/**
* Check if an object contains all the specified keys.
*/
export function hasKeys(object, keys) {
return keys.map(key => key in object).every(val => val);
}

0 comments on commit 71d0b54

Please sign in to comment.